mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Return in the game when ESC is used in the stop phase
It prevents to lost the current game just because we use two times the ESC key. It's better to return in the game when ESCAPE is used from the STOP phase (game paused).
This commit is contained in:
parent
c81b41192d
commit
9d23c1012c
@ -5203,6 +5203,9 @@ CEvent::TreatEventBase (const SDL_Event & event)
|
||||
return true;
|
||||
|
||||
case EV_PHASE_STOP:
|
||||
ChangePhase (EV_PHASE_PLAY);
|
||||
return true;
|
||||
|
||||
case EV_PHASE_LOST:
|
||||
case EV_PHASE_BUILD:
|
||||
ChangePhase (EV_PHASE_INFO);
|
||||
|
Loading…
x
Reference in New Issue
Block a user