From 45bca98b792f8ced1a57ef8c5beed2a90a79d47f Mon Sep 17 00:00:00 2001 From: Clyne Sullivan <tullivan99@gmail.com> Date: Mon, 30 Nov 2015 08:47:07 -0500 Subject: switched to 100% new/delete --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 30ee463..5ac85ba 100644 --- a/main.cpp +++ b/main.cpp @@ -496,11 +496,11 @@ void mainLoop(void){ /* * Run the logic handler if MSEC_PER_TICK milliseconds have passed. */ + if(prevPrevTime + MSEC_PER_TICK >= currentTime){ logic(); prevPrevTime = currentTime; } - //ui::handleMouse(); /* * Update player and entity coordinates. @@ -519,7 +519,7 @@ void mainLoop(void){ }else if(!(debugDiv%10)){ debugY = player->loc.y; - } + } render(); // Call the render loop -- cgit v1.2.3