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:
parent
e260ddf5e3
commit
881a0137b4
@ -5107,6 +5107,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);
|
||||
@ -5128,9 +5132,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);
|
||||
}
|
||||
|
@ -244,6 +244,7 @@ protected:
|
||||
bool m_bHelp;
|
||||
bool m_bAllMissions;
|
||||
Sint32 m_scrollSpeed;
|
||||
Sint32 m_scrollSpeedPrev;
|
||||
bool m_bPause;
|
||||
bool m_bShift;
|
||||
Sint32 m_shiftPhase;
|
||||
|
Loading…
x
Reference in New Issue
Block a user