From 6a617398cb296a0538e1f49470046954347f8204 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 3 Dec 2017 20:01:15 +0100 Subject: [PATCH] fixed potential bug in cwpeek --- cell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cell.cpp b/cell.cpp index 74a0c9a8..cb92ff1c 100644 --- a/cell.cpp +++ b/cell.cpp @@ -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) {