diff --git a/game.cpp b/game.cpp index 26c12196..d799d7c7 100644 --- a/game.cpp +++ b/game.cpp @@ -3953,7 +3953,7 @@ void beastAttack(cell *c, bool player) { if(c2->monst && c2->stuntime) { cellwalker bull (c, d); int subdir = determinizeBullPush(bull); - int pushdir; + int pushdir = NOHINT; cell *c3 = determinePush(bull, c2, subdir, [c2] (cell *c) { return passable(c, c2, P_BLOW); }, pushdir); if(c3 && c3 != c2) pushMonster(c3, c2, pushdir); @@ -3966,7 +3966,7 @@ void beastAttack(cell *c, bool player) { if(c2->wall == waThumperOn) { cellwalker bull (c, d); int subdir = determinizeBullPush(bull); - int pushdir; + int pushdir = NOHINT; cell *c3 = determinePush(bull, c2, subdir, [c2] (cell *c) { return canPushThumperOn(c, c2, c); }, pushdir); if(c3 && c3 != c2) pushThumper(c2, c3); diff --git a/rogueviz-banachtarski.cpp b/rogueviz-banachtarski.cpp index 7b457e89..5fc44a9b 100644 --- a/rogueviz-banachtarski.cpp +++ b/rogueviz-banachtarski.cpp @@ -388,6 +388,8 @@ void bantar_frame() { case 4: xdst = .5, ydst = 0; break; + default: + xdst = ydst = 0; } /* ld xpos = (!(i&2)) ? xdst : -xdst;