]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
Added redefinition for MSVC
[lugaru.git] / Source / GameTick.cpp
index 00bcdc400cc1d9c6f288cf00091cbc95f8fbcf09..8138608f19f01a8c7e85a23631300f4138587ed4 100644 (file)
@@ -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};