varible location differs in files ... static not working?
authorPatrik Gornicz <Gornicz.P@gmail.com>
Fri, 29 Aug 2008 05:02:39 +0000 (01:02 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Fri, 29 Aug 2008 05:02:39 +0000 (01:02 -0400)
src/config/config.cpp
src/config/keys.cpp

index 2df8b74..1e15c69 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include "config.h"
+#include "../debug.h"
 
 #include <SDL/SDL.h>
 #include "keys.h"
@@ -35,6 +36,8 @@ void cfg::init()
     // TODO read in config files
 
     key::init();
+
+    cout << &key::end << endl;
 }
 void cfg::clean()
 {
index 6cd3cfd..6a15f6e 100644 (file)
 /// ***** Initializers/Cleaners *****
 void key::init()
 {
-    pause = SDLK_PAUSE;
+    pause = SDLK_p;
     end = SDLK_ESCAPE;
 
     follow = SDLK_f;
 
     well = SDLK_SPACE;
-}
 
+    cout << &key::end << endl;
+}
 void key::clean()
 {
 }