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

Disable smooth scroll with demos

It prevents lag and bad shift with mouse clicks.
This commit is contained in:
Mathieu Schroeter 2018-06-26 23:14:29 +02:00 committed by Mathieu Schroeter
parent fc4483998d
commit 1300d8fb05
2 changed files with 9 additions and 3 deletions

View File

@ -5005,6 +5005,10 @@ CEvent::DemoPlayStart (const std::string * demoFile)
DemoPlayStop ();
return false;
}
this->m_scrollSpeedPrev = m_scrollSpeed;
this->m_scrollSpeed = 3;
ChangePhase (EV_PHASE_PLAY);
InitRandom ();
m_pDecor->SetTime (0);
@ -5026,9 +5030,10 @@ CEvent::DemoPlayStop ()
m_pDemoSDLBuffer.clear ();
m_bDemoPlay = false;
m_bDemoRec = false;
m_demoTime = 0;
m_bDemoPlay = false;
m_bDemoRec = false;
m_demoTime = 0;
this->m_scrollSpeed = this->m_scrollSpeedPrev;
ChangePhase (EV_PHASE_INIT);
}

View File

@ -241,6 +241,7 @@ protected:
bool m_bHelp;
bool m_bAllMissions;
Sint32 m_scrollSpeed;
Sint32 m_scrollSpeedPrev;
bool m_bPause;
bool m_bShift;
Sint32 m_shiftPhase;