From: Patrik Gornicz Date: Fri, 29 Aug 2008 05:02:39 +0000 (-0400) Subject: varible location differs in files ... static not working? X-Git-Tag: physics-premerge~118 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=commitdiff_plain;h=c04d3365e5e66c2595257ebcd06191454ff6bff8;p=libbear.git varible location differs in files ... static not working? --- diff --git a/src/config/config.cpp b/src/config/config.cpp index 2df8b74..1e15c69 100644 --- a/src/config/config.cpp +++ b/src/config/config.cpp @@ -16,6 +16,7 @@ */ #include "config.h" +#include "../debug.h" #include #include "keys.h" @@ -35,6 +36,8 @@ void cfg::init() // TODO read in config files key::init(); + + cout << &key::end << endl; } void cfg::clean() { diff --git a/src/config/keys.cpp b/src/config/keys.cpp index 6cd3cfd..6a15f6e 100644 --- a/src/config/keys.cpp +++ b/src/config/keys.cpp @@ -26,14 +26,15 @@ /// ***** 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() { }