]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Game.cpp
Fixed a lot of warnings
[lugaru.git] / Source / Game.cpp
index f41a92a6b97dc05e21b53c430df44295c520aefa..a70776fccd7a06c2f8f71e86fafc5d76c84d9095 100644 (file)
@@ -47,6 +47,12 @@ int directing;
 float dialoguetime;
 int dialoguegonethrough[20];
 
+const char *pathtypenames[] = {"keepwalking", "pause"};
+const char *editortypenames[] = {
+    "active", "sitting", "sitting wall", "sleeping",
+    "dead1", "dead2", "dead3", "dead4"
+};
+
 namespace Game
 {
 Texture terraintexture;
@@ -128,10 +134,10 @@ std::string displaytext[15] = {};
 float displaytime[15] = {};
 float displayblinkdelay = 0;
 bool displayblink = 0;
-int displayselected = 0;
+unsigned displayselected = 0;
 float consoleblinkdelay = 0;
 bool consoleblink = 0;
-int consoleselected = 0;
+unsigned consoleselected = 0;
 
 unsigned short crouchkey = 0, jumpkey = 0, forwardkey = 0, backkey = 0, leftkey = 0, rightkey = 0, drawkey = 0, throwkey = 0, attackkey = 0;
 unsigned short consolekey = 0;
@@ -151,7 +157,7 @@ void Game::fireSound(int sound)
     emit_sound_at(sound);
 }
 
-void Game::inputText(string& str, int* charselected)
+void Game::inputText(string& str, unsigned* charselected)
 {
     SDL_Event evenement;