1
0
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:
Mathieu Schroeter 2017-10-18 06:40:37 +02:00
parent c81b41192d
commit 9d23c1012c

View File

@ -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);