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

Fix the recorder start and stop with F3 and F4

This commit is contained in:
Mathieu Schroeter 2017-08-15 17:38:39 +02:00
parent 500b16a58f
commit 207af398eb

View File

@ -5237,14 +5237,18 @@ CEvent::TreatEventBase (const SDL_Event & event)
}
return true;
case SDLK_F3:
if (m_phase == EV_PHASE_PLAY && !m_bDemoPlay && m_bStartRecording)
if (m_phase == EV_PHASE_PLAY && !m_bDemoPlay && !m_bStartRecording)
{
DemoRecStart (); // start recording
m_bStartRecording = true;
}
break;
case SDLK_F4:
m_bStartRecording = false;
if (m_phase == EV_PHASE_PLAY && !m_bDemoPlay && m_bStartRecording)
{
DemoRecStop (); // stop recording
m_bStartRecording = false;
}
break;
case SDLK_F9:
if (m_phase == EV_PHASE_PLAY)