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:
parent
3e6baf4e21
commit
6a617398cb
2
cell.cpp
2
cell.cpp
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user