aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-11-30 08:47:07 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-11-30 08:47:07 -0500
commit45bca98b792f8ced1a57ef8c5beed2a90a79d47f (patch)
tree0ac3026c2a9bac4037cfe9003f532eca02db92f0 /main.cpp
parentfbe1b6c3a0a3427111577e6b77600f5669012583 (diff)
switched to 100% new/delete
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
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