mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 03:20:00 +00:00
CTimer fix
This commit is contained in:
parent
d8272b8812
commit
fdf8f35049
|
@ -18,10 +18,10 @@ public:
|
||||||
static const float &GetTimeStep(void) { return ms_fTimeStep; }
|
static const float &GetTimeStep(void) { return ms_fTimeStep; }
|
||||||
static void SetTimeStep(float ts) { ms_fTimeStep = ts; }
|
static void SetTimeStep(float ts) { ms_fTimeStep = ts; }
|
||||||
static float GetTimeStepInSeconds() { return ms_fTimeStep / 50.0f; }
|
static float GetTimeStepInSeconds() { return ms_fTimeStep / 50.0f; }
|
||||||
static float GetTimeStepInMilliseconds() { return ms_fTimeStep / 50.0f * 1000.0f; }
|
static uint32 GetTimeStepInMilliseconds() { return ms_fTimeStep / 50.0f * 1000.0f; }
|
||||||
static const float &GetTimeStepNonClipped(void) { return ms_fTimeStepNonClipped; }
|
static const float &GetTimeStepNonClipped(void) { return ms_fTimeStepNonClipped; }
|
||||||
static float GetTimeStepNonClippedInSeconds(void) { return ms_fTimeStepNonClipped / 50.0f; }
|
static float GetTimeStepNonClippedInSeconds(void) { return ms_fTimeStepNonClipped / 50.0f; }
|
||||||
static float GetTimeStepNonClippedInMilliseconds(void) { return ms_fTimeStepNonClipped / 50.0f * 1000.0f; }
|
static uint32 GetTimeStepNonClippedInMilliseconds(void) { return ms_fTimeStepNonClipped / 50.0f * 1000.0f; }
|
||||||
static void SetTimeStepNonClipped(float ts) { ms_fTimeStepNonClipped = ts; }
|
static void SetTimeStepNonClipped(float ts) { ms_fTimeStepNonClipped = ts; }
|
||||||
static const uint32 &GetFrameCounter(void) { return m_FrameCounter; }
|
static const uint32 &GetFrameCounter(void) { return m_FrameCounter; }
|
||||||
static void SetFrameCounter(uint32 fc) { m_FrameCounter = fc; }
|
static void SetFrameCounter(uint32 fc) { m_FrameCounter = fc; }
|
||||||
|
|
|
@ -840,7 +840,7 @@ CAutomobile::ProcessControl(void)
|
||||||
if(GetStatus() == STATUS_PLAYER && pHandling->Flags & HANDLING_IS_BUS){
|
if(GetStatus() == STATUS_PLAYER && pHandling->Flags & HANDLING_IS_BUS){
|
||||||
if(m_nBusDoorTimerEnd == 0)
|
if(m_nBusDoorTimerEnd == 0)
|
||||||
m_nBusDoorTimerEnd = 1000;
|
m_nBusDoorTimerEnd = 1000;
|
||||||
else if(m_nBusDoorTimerEnd > (uint32)CTimer::GetTimeStepInMilliseconds())
|
else if(m_nBusDoorTimerEnd > CTimer::GetTimeStepInMilliseconds())
|
||||||
m_nBusDoorTimerEnd -= CTimer::GetTimeStepInMilliseconds();
|
m_nBusDoorTimerEnd -= CTimer::GetTimeStepInMilliseconds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue