mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 20:46:47 +03:00
Make OnControlPhase take a float, representing the delta time.
This is not ACTUALLY the amount of time that has passed, since things in the gameplay loop appear to assume they are being called thirty times per second, even if more or less time has passed. Thus to keep the scripts in sync with the the rest of the engine, we force a 1/30 second delta time.
This commit is contained in:
parent
b480ea23f7
commit
8b7815c8a0
3 changed files with 10 additions and 7 deletions
|
@ -116,7 +116,7 @@ public:
|
|||
void InitCallbacks();
|
||||
void OnStart();
|
||||
void OnLoad();
|
||||
void OnControlPhase();
|
||||
void OnControlPhase(float dt);
|
||||
void OnSave();
|
||||
void OnEnd();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue