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

Fix stop when the played demo is ended

This commit is contained in:
Mathieu Schroeter 2017-09-06 23:32:33 +02:00
parent e099ba8e51
commit d7eaa6995d

View File

@ -5315,6 +5315,11 @@ CEvent::TreatEventBase (const SDL_Event & event)
g_enableRecorder && m_phase == EV_PHASE_PLAY && !m_bDemoPlay &&
m_bStartRecording)
DemoRecStop (); // stop recording
else if (m_phase == EV_PHASE_PLAY && m_bDemoPlay)
{
DemoPlayStop ();
return true;
}
break;
case SDLK_F9:
if (m_phase == EV_PHASE_PLAY)