1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed potential bug in cwpeek

This commit is contained in:
Zeno Rogue 2017-12-03 20:01:15 +01:00
parent 3e6baf4e21
commit 6a617398cb

View File

@ -498,7 +498,7 @@ bool cwstepcreates(cellwalker& cw) {
} }
cell *cwpeek(cellwalker cw, int dir) { cell *cwpeek(cellwalker cw, int dir) {
return createMov(cw.c, (cw.spin+MODFIXER+dir) % cw.c->type); return createMov(cw.c, (cw.spin+MODFIXER+(MIRR(cw)?-dir:dir)) % cw.c->type);
} }
void cwmirrorat(cellwalker& cw, int d) { void cwmirrorat(cellwalker& cw, int d) {