diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-10-12 13:53:38 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-10-12 13:53:38 +0300 |
commit | 9e46cbf7ea512330f35d0f2ede0c7c0c085c7cf4 (patch) | |
tree | f937a97b67b5ecd0ee65ed9a845e6e4a640bb629 /src/keycode.cpp | |
parent | b60b58b627f078faba002401d300b522e0077efc (diff) | |
download | minetest-9e46cbf7ea512330f35d0f2ede0c7c0c085c7cf4.tar.gz minetest-9e46cbf7ea512330f35d0f2ede0c7c0c085c7cf4.tar.bz2 minetest-9e46cbf7ea512330f35d0f2ede0c7c0c085c7cf4.zip |
Header file tweaking; mainly for speed
Diffstat (limited to 'src/keycode.cpp')
-rw-r--r-- | src/keycode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keycode.cpp b/src/keycode.cpp index 5ad5ab55d..542185178 100644 --- a/src/keycode.cpp +++ b/src/keycode.cpp @@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "keycode.h" #include "main.h" // For g_settings #include "exceptions.h" +#include "settings.h" class UnknownKeycode : public BaseException { @@ -334,7 +335,7 @@ KeyPress getKeySetting(const char *settingname) if(n) return n->getValue(); g_key_setting_cache.insert(settingname, - g_settings.get(settingname).c_str()); + g_settings->get(settingname).c_str()); return g_key_setting_cache.find(settingname)->getValue(); } |