]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
The damage bar now appear in the option menu
[lugaru.git] / Source / GameTick.cpp
index 5c8b4acd77ef67faaadbdaee4fe991ef27b0d20b..2328eb8f0ce50367d660c7126c2b856466d8ab2a 100644 (file)
@@ -101,6 +101,7 @@ extern bool foliage;
 extern bool trilinear;
 extern bool damageeffects;
 extern bool showpoints;
+extern bool showdamagebar; // (des)activate the damage bar
 extern bool texttoggle;
 extern bool alwaysblur;
 extern float gamespeed;
@@ -3109,6 +3110,9 @@ void      Game::Tick()
                                mainmenu=18;
                                keyselect = -1;
                        }
+                       if(Button() && !oldbutton && selected == 13) {
+                               showdamagebar=!showdamagebar;
+                       }
                        if(Button()&&!oldbutton&&selected==8){
                                float gLoc[3]={0,0,0};
                                float vel[3]={0,0,0};