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

Fix regression when recording or playing a demo

Only keyboard events must be accepted with demos.
This commit is contained in:
Mathieu Schroeter 2017-10-31 15:59:07 +01:00
parent a2b95775d4
commit 67c7c4c970

View File

@ -3501,6 +3501,9 @@ CEvent::DecorAutoShift ()
}
else
{
if (m_bDemoRec || m_bDemoPlay)
return;
switch (m_mouseSprite)
{
case SPRITE_ARROWL:
@ -3542,9 +3545,6 @@ CEvent::DecorAutoShift ()
m_bShift = false;
if (m_bDemoRec || m_bDemoPlay)
return;
if (!byKeyboard && (!m_bFullScreen || m_scrollSpeed == 0))
return;