aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-03-16 08:48:50 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-03-16 08:48:50 -0400
commit8dae5eeac2c6254bb8288c0479c193ab185a312f (patch)
treeb9cac413e7da7b955c598ef39e61e6f2beecc124 /main.cpp
parent93d6035dad1eb60fb01648232809e55059dd1cfa (diff)
string'd some stuff
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/main.cpp b/main.cpp
index 6e58e1c..69aab76 100644
--- a/main.cpp
+++ b/main.cpp
@@ -415,9 +415,9 @@ int main(int argc, char *argv[]){
//currentWorld->mob.back()->followee = player;
gameRunning = true;
- while(gameRunning){
+
+ while ( gameRunning )
mainLoop();
- }
/**************************
**** CLOSE PROGRAM ****
@@ -431,7 +431,7 @@ int main(int argc, char *argv[]){
Mix_CloseAudio();
destroyInventory();
- ui::destroyFonts();
+ ui::destroyFonts();
Texture::freeTextures();
SDL_GL_DeleteContext(mainGLContext);
@@ -478,7 +478,6 @@ void mainLoop(void){
prev = currentWorld;
-
//pool.Enqueue(ui::handleEvents);
ui::handleEvents();
@@ -493,15 +492,7 @@ void mainLoop(void){
prevPrevTime = currentTime;
}
- /*
- * Update player and entity coordinates.
- */
-
- /*pool.Enqueue([](){
- currentWorld->update(player,deltaTime);
- });*/
-
- currentWorld->update(player,deltaTime);
+ currentWorld->update( player, deltaTime );
/*
* Update debug variables if necessary
@@ -512,7 +503,7 @@ void mainLoop(void){
if ( deltaTime )
fps = 1000 / deltaTime;
- if(!(debugDiv%10))
+ if(!(debugDiv % 10))
debugY = player->loc.y;
}
MENU: