mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
Silence a (bogus?) -Wmaybe-uninitialized from MinGW.
This commit is contained in:
parent
817f690ae3
commit
121e2a60d3
4
game.cpp
4
game.cpp
@ -3941,7 +3941,7 @@ void beastAttack(cell *c, bool player) {
|
||||
if(c2->monst && c2->stuntime) {
|
||||
cellwalker bull (c, d);
|
||||
int subdir = determinizeBullPush(bull);
|
||||
int pushdir;
|
||||
int pushdir = 0;
|
||||
cell *c3 = determinePush(bull, c2, subdir, [c2] (cell *c) { return passable(c, c2, P_BLOW); }, pushdir);
|
||||
if(c3 && c3 != c2)
|
||||
pushMonster(c3, c2, pushdir);
|
||||
@ -3954,7 +3954,7 @@ void beastAttack(cell *c, bool player) {
|
||||
if(c2->wall == waThumperOn) {
|
||||
cellwalker bull (c, d);
|
||||
int subdir = determinizeBullPush(bull);
|
||||
int pushdir;
|
||||
int pushdir = 0;
|
||||
cell *c3 = determinePush(bull, c2, subdir, [c2] (cell *c) { return canPushThumperOn(c, c2, c); }, pushdir);
|
||||
if(c3 && c3 != c2)
|
||||
pushThumper(c2, c3);
|
||||
|
Loading…
Reference in New Issue
Block a user