mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-07-23 09:58:51 +00:00
fixed potential bug in cwpeek
This commit is contained in:
@@ -498,7 +498,7 @@ bool cwstepcreates(cellwalker& cw) {
|
||||
}
|
||||
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user