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:
parent
8f51f0c9cf
commit
32e734f59d
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user