Allow the archhooks to update if needed once per cycle through game loop. This is done after inputs have been handled
This commit is contained in:
@@ -811,6 +811,8 @@ static void GameLoop()
|
||||
/* Important: Process input AFTER updating game logic, or input will be acting on song beat from last frame */
|
||||
HandleInputEvents( fDeltaTime );
|
||||
|
||||
HOOKS->Update( fDeltaTime );
|
||||
|
||||
/*
|
||||
* Render
|
||||
*/
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
virtual MessageBoxResult MessageBoxAbortRetryIgnore( CString sMessage, CString ID = "" ) { return ignore; }
|
||||
|
||||
virtual ~ArchHooks() { }
|
||||
/* This is called once each time through the game loop */
|
||||
virtual void Update(float delta) { }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user