mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed the uninitialized variable warnings
This commit is contained in:
parent
c2d7b0c011
commit
5e891cf66e
4
game.cpp
4
game.cpp
@ -3953,7 +3953,7 @@ void beastAttack(cell *c, bool player) {
|
|||||||
if(c2->monst && c2->stuntime) {
|
if(c2->monst && c2->stuntime) {
|
||||||
cellwalker bull (c, d);
|
cellwalker bull (c, d);
|
||||||
int subdir = determinizeBullPush(bull);
|
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);
|
cell *c3 = determinePush(bull, c2, subdir, [c2] (cell *c) { return passable(c, c2, P_BLOW); }, pushdir);
|
||||||
if(c3 && c3 != c2)
|
if(c3 && c3 != c2)
|
||||||
pushMonster(c3, c2, pushdir);
|
pushMonster(c3, c2, pushdir);
|
||||||
@ -3966,7 +3966,7 @@ void beastAttack(cell *c, bool player) {
|
|||||||
if(c2->wall == waThumperOn) {
|
if(c2->wall == waThumperOn) {
|
||||||
cellwalker bull (c, d);
|
cellwalker bull (c, d);
|
||||||
int subdir = determinizeBullPush(bull);
|
int subdir = determinizeBullPush(bull);
|
||||||
int pushdir;
|
int pushdir = NOHINT;
|
||||||
cell *c3 = determinePush(bull, c2, subdir, [c2] (cell *c) { return canPushThumperOn(c, c2, c); }, pushdir);
|
cell *c3 = determinePush(bull, c2, subdir, [c2] (cell *c) { return canPushThumperOn(c, c2, c); }, pushdir);
|
||||||
if(c3 && c3 != c2)
|
if(c3 && c3 != c2)
|
||||||
pushThumper(c2, c3);
|
pushThumper(c2, c3);
|
||||||
|
@ -388,6 +388,8 @@ void bantar_frame() {
|
|||||||
case 4:
|
case 4:
|
||||||
xdst = .5, ydst = 0;
|
xdst = .5, ydst = 0;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
xdst = ydst = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ld xpos = (!(i&2)) ? xdst : -xdst;
|
/* ld xpos = (!(i&2)) ? xdst : -xdst;
|
||||||
|
Loading…
Reference in New Issue
Block a user