From b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 6 Jul 2019 18:06:08 +0300 Subject: Added CUpsideDownCarCheck and CStuckCarCheck --- src/Timer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Timer.h') diff --git a/src/Timer.h b/src/Timer.h index 75d4048c..fbb130a3 100644 --- a/src/Timer.h +++ b/src/Timer.h @@ -29,6 +29,7 @@ public: static inline void SetPreviousTimeInMilliseconds(uint32 t) { m_snPreviousTimeInMilliseconds = t; } static float GetTimeScale(void) { return ms_fTimeScale; } static inline void SetTimeScale(float ts) { ms_fTimeScale = ts; } + static inline float GetFrameTimeStepInMilliseconds() { return ms_fTimeStep / 50.0f * 1000.0f; } static bool GetIsPaused() { return m_UserPause || m_CodePause; } static bool GetIsUserPaused() { return m_UserPause; } -- cgit v1.2.3