fix gcc warning on linux

This commit is contained in:
nhmall
2019-06-01 17:26:15 -04:00
parent 5ee78c5204
commit 4eeebe5e20

View File

@@ -749,7 +749,7 @@ int x, y;
vault guards (either living or dead) are parked at <0,0> */ vault guards (either living or dead) are parked at <0,0> */
if (!isok(x, y) && (x != 0 || y != 0 || !mon->isgd)) { if (!isok(x, y) && (x != 0 || y != 0 || !mon->isgd)) {
describe_level(buf); describe_level(buf);
impossible("trying to place monster at <%d,%d> mstate:%x on %s", impossible("trying to place monster at <%d,%d> mstate:%lx on %s",
x, y, mon->mstate, buf); x, y, mon->mstate, buf);
x = y = 0; x = y = 0;
} }
@@ -757,14 +757,14 @@ int x, y;
/* special case is for convoluted vault guard handling */ /* special case is for convoluted vault guard handling */
|| (DEADMONSTER(mon) && !(mon->isgd && x == 0 && y == 0))) { || (DEADMONSTER(mon) && !(mon->isgd && x == 0 && y == 0))) {
describe_level(buf); describe_level(buf);
impossible("placing %s onto map, mstate:%x, on %s?", impossible("placing %s onto map, mstate:%lx, on %s?",
(mon == u.usteed) ? "steed" : "defunct monster", (mon == u.usteed) ? "steed" : "defunct monster",
mon->mstate, buf); mon->mstate, buf);
return; return;
} }
if (level.monsters[x][y]) { if (level.monsters[x][y]) {
describe_level(buf); describe_level(buf);
impossible("placing monster over another at <%d,%d>, mstates:%x %x on %s?", impossible("placing monster over another at <%d,%d>, mstates:%lx %lx on %s?",
x, y, level.monsters[x][y]->mstate, mon->mstate, buf); x, y, level.monsters[x][y]->mstate, mon->mstate, buf);
} }
mon->mx = x, mon->my = y; mon->mx = x, mon->my = y;