X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameTick.cpp;h=8138608f19f01a8c7e85a23631300f4138587ed4;hb=4155ca2c4aa4bac78ce35a38b5e2e69c0c77e585;hp=4d7af69750c0b09c06585d07d0d4ffdab0e29ef1;hpb=37aebc9e3fe24a45f04b35ff27e9d767014f3247;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 4d7af69..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; @@ -101,6 +108,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; @@ -737,6 +745,11 @@ static void ch_wolfie(Game *game, const char *args) set_proportion(0, "1 1 1 1"); } +static void ch_wolfieisgod(Game *game, const char *args) +{ + ch_wolfie(game, args); +} + static void ch_wolf(Game *game, const char *args) { game->LoadTextureSave(":Data:Textures:Wolf.jpg",&player[0].skeleton.drawmodel.textureptr,1, @@ -755,6 +768,12 @@ static void ch_darkwolf(Game *game, const char *args) &player[0].skeleton.skinText[0],&player[0].skeleton.skinsize); } +static void ch_lizardwolf(Game *game, const char *args) +{ + game->LoadTextureSave(":Data:Textures:Lizardwolf.jpg",&player[0].skeleton.drawmodel.textureptr,1, + &player[0].skeleton.skinText[0],&player[0].skeleton.skinsize); +} + static void ch_white(Game *game, const char *args) { game->LoadTextureSave(":Data:Textures:fur.jpg",&player[0].skeleton.drawmodel.textureptr,1, @@ -3098,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};