X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameTick.cpp;h=2328eb8f0ce50367d660c7126c2b856466d8ab2a;hb=5dc3c16842b5ad0c4fe72fafe0eed61f12fbf93a;hp=5c8b4acd77ef67faaadbdaee4fe991ef27b0d20b;hpb=c0a6dc9211fd7855250be34151a70ec4bceb5126;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 5c8b4ac..2328eb8 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -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};