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:
parent
500b16a58f
commit
207af398eb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user