added an interupt handler has SIGINT was being ignored... ?
[physics.git] / src / main.cpp
index 98565a6..7313306 100644 (file)
@@ -2,10 +2,8 @@
 #include <GL/glu.h>
 #include <SDL/SDL.h>
 
-#include <vector>
-using std::vector;
-
 #include "debug.h"
+#include "handleSignal.h"
 
 #include "game.h"
 #include "ticks.h"
@@ -14,9 +12,12 @@ using std::vector;
 #include "input/inputManager.h"
 
 
+
 /// ***** Private Method Headers *****
 void init();
 
+void sighandler( int sig );
+
 void run();
 void cleanUp();
 
@@ -66,6 +67,8 @@ long int last_Second;
 /// ***** Private Methods *****
 void init()
 {
+    installSignal();
+
     graphicsInit();
 
     gameInit();