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

Disable the pause keyboard event with difficult skill level

- It closes issue #22.
This commit is contained in:
Mathieu Schroeter 2017-09-22 12:48:20 +02:00
parent 07f13f6059
commit 4c234737ff

View File

@ -5303,6 +5303,9 @@ CEvent::TreatEventBase (const SDL_Event & event)
m_pDecor->FlipOutline ();
return true;
case SDLK_PAUSE:
if (this->m_pDecor->GetSkill () >= 1)
return true;
m_bPause = !m_bPause;
if (m_phase == EV_PHASE_PLAY)
{