diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-05-09 07:42:18 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-05-09 07:42:18 -0400 |
commit | 50bfb70e9a1788e6f64800001919e3d8386eb81d (patch) | |
tree | 2c41ac01a6212a9cd3c6d304e161b9e6d073e815 /main.cpp | |
parent | bc92962aff14805d5920f5a82628648d1c1fe4fd (diff) |
world draw fixes
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -99,9 +99,6 @@ void mainLoop(void); ********************************************************************************/ int main(int argc, char *argv[]){ - (void)argc; - (void)argv; - static SDL_GLContext mainGLContext = NULL; // handle command line arguments @@ -275,6 +272,7 @@ int main(int argc, char *argv[]){ if (currentWorld == NULL) UserError("Plot twist: The world never existed...?"); + // spawn the arena arena = new Arena(); arena->setStyle(""); arena->setBackground(WorldBGType::Forest); @@ -307,9 +305,7 @@ int main(int argc, char *argv[]){ // close up the game stuff currentWorld->save(); delete arena; - //delete currentWorld; - //delete[] currentXML; - //aipreload.clear(); + delete currentWorld; return 0; // Calls everything passed to atexit } |