]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Game.cpp
console commands works again.
[lugaru.git] / Source / Game.cpp
index 1f48171647e57b751cd84952c484a1e82a0eddde..0cc5057361aa86855ff8ff42fa6fc2ddf0f29b6a 100644 (file)
@@ -26,8 +26,6 @@ int directing;
 float dialoguetime;
 int dialoguegonethrough[20];
 
-std::vector<TextureInfo> Game::textures;
-
 Game::Game()
 {
        terraintexture = 0;
@@ -52,8 +50,6 @@ Game::Game()
        memset(endy, 0, sizeof(endy));
 
        memset(selectedlong, 0, sizeof(selectedlong));
-       memset(offsetx, 0, sizeof(offsetx));
-       memset(offsety, 0, sizeof(offsety));
 
        selected = 0;
        keyselect = 0;
@@ -165,6 +161,7 @@ Game::Game()
        autocam = 0;
 
        crouchkey = 0,jumpkey = 0,forwardkey = 0,chatkey = 0,backkey = 0,leftkey = 0,rightkey = 0,drawkey = 0,throwkey = 0,attackkey = 0;
+       consolekey = 0;
        oldattackkey = 0;
 
        loading = 0;
@@ -314,6 +311,8 @@ void Game::setKeySelected_thread() {
                        break;
                        case 8: attackkey=keycode;
                        break;
+                       case 9: consolekey=keycode;
+                       break;
                        default:
                        break;
                }