1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Prevent screen move when we are not playing or building

- It closes issue #46.
This commit is contained in:
Mathieu Schroeter 2017-11-03 08:55:07 +01:00
parent 8f51f0c9cf
commit 32e734f59d

View File

@ -5426,6 +5426,9 @@ CEvent::TreatEventBase (const SDL_Event & event)
case SDLK_UP:
case SDLK_DOWN:
{
if (m_phase != EV_PHASE_PLAY && m_phase != EV_PHASE_BUILD)
return true;
bool left, right, up, down;
const Uint8 * state = SDL_GetKeyboardState (nullptr);