From c04d3365e5e66c2595257ebcd06191454ff6bff8 Mon Sep 17 00:00:00 2001 From: Patrik Gornicz Date: Fri, 29 Aug 2008 01:02:39 -0400 Subject: [PATCH] varible location differs in files ... static not working? --- src/config/config.cpp | 3 +++ src/config/keys.cpp | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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() { } -- 2.10.2