mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Reset last frame timer when entering playmode
This commit is contained in:
@@ -87,6 +87,8 @@ namespace Nuake
|
||||
|
||||
void Engine::EnterPlayMode()
|
||||
{
|
||||
s_LastFrameTime = (float)glfwGetTime();; // Reset timestep timer.
|
||||
|
||||
// Dont trigger init if already in player mode.
|
||||
if (IsPlayMode())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user