fixed potential bug in cwpeek

This commit is contained in:
Zeno Rogue
2017-12-03 20:01:15 +01:00
parent 3e6baf4e21
commit 6a617398cb
+1 -1
View File
@@ -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) {