Reset input at the end of easter egg hunt mode

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14399 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2013-11-08 22:12:05 +00:00
parent 41bc19fa99
commit 79e1dc6efd
2 changed files with 7 additions and 1 deletions

View File

@@ -214,4 +214,10 @@ void EasterEggHunt::checkForWrongDirection(unsigned int i)
{
} // checkForWrongDirection
//-----------------------------------------------------------------------------
void EasterEggHunt::terminateRace()
{
m_karts[0]->getControls().reset();
WorldWithRank::terminateRace();
}

View File

@@ -56,7 +56,7 @@ public:
virtual bool raceHasLaps(){ return false; }
virtual const std::string& getIdent() const;
virtual void terminateRace();
virtual void update(float dt);
virtual void getKartsDisplayInfo(
std::vector<RaceGUIBase::KartIconDisplayInfo> *info);