diff options
author | aap <aap@papnet.eu> | 2019-07-07 09:45:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-07 09:45:07 +0200 |
commit | b515ce4730891ea11540369241d9d6d7b0749057 (patch) | |
tree | 5f04ec2612812056b5bcada9e8e6fe1172e02ca0 /src/Timer.h | |
parent | Merge pull request #115 from erorcun/erorcun (diff) | |
parent | Added CUpsideDownCarCheck and CStuckCarCheck (diff) | |
download | re3-b515ce4730891ea11540369241d9d6d7b0749057.tar re3-b515ce4730891ea11540369241d9d6d7b0749057.tar.gz re3-b515ce4730891ea11540369241d9d6d7b0749057.tar.bz2 re3-b515ce4730891ea11540369241d9d6d7b0749057.tar.lz re3-b515ce4730891ea11540369241d9d6d7b0749057.tar.xz re3-b515ce4730891ea11540369241d9d6d7b0749057.tar.zst re3-b515ce4730891ea11540369241d9d6d7b0749057.zip |
Diffstat (limited to 'src/Timer.h')
-rw-r--r-- | src/Timer.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |