Reset time target if leaving the soccer screen with escape
This commit is contained in:
@@ -487,3 +487,10 @@ void SoccerSetupScreen::updateKartViewsLayout()
|
||||
view_info.view->move(pos_x, pos_y, kart_view_size, kart_view_size);
|
||||
}
|
||||
} // updateKartViewsLayout
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
bool SoccerSetupScreen::onEscapePressed()
|
||||
{
|
||||
race_manager->setTimeTarget(0.0f);
|
||||
return true;
|
||||
} // onEscapePressed
|
||||
|
||||
@@ -76,6 +76,8 @@ public:
|
||||
Input::InputType type,
|
||||
int playerId) OVERRIDE;
|
||||
|
||||
virtual bool onEscapePressed() OVERRIDE;
|
||||
|
||||
private:
|
||||
bool areAllKartsConfirmed() const;
|
||||
int getNumConfirmedKarts();
|
||||
|
||||
Reference in New Issue
Block a user