X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameTick.cpp;h=8138608f19f01a8c7e85a23631300f4138587ed4;hb=4155ca2c4aa4bac78ce35a38b5e2e69c0c77e585;hp=00bcdc400cc1d9c6f288cf00091cbc95f8fbcf09;hpb=1a0ad4362ed618c1a25508530dfeeb4a0f6ef345;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 00bcdc4..8138608 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -34,6 +34,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. using namespace std; +// Added more evilness needed for MSVC +#ifdef _MSC_VER + #define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n) + #define snprintf(buf, size, format, ...) _sprintf_p(buf, size, format) +#endif + + extern float multiplier; extern XYZ viewer; extern int environment; @@ -3110,6 +3117,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};