mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-14 20:57:10 +00:00
strafe: cmove not move
This commit is contained in:
2
reg3.cpp
2
reg3.cpp
@@ -1062,7 +1062,7 @@ EX cellwalker strafe(cellwalker cw, int j) {
|
|||||||
transmatrix T = currentmap->adj(cw.at, j);
|
transmatrix T = currentmap->adj(cw.at, j);
|
||||||
for(int i=0; i<S7; i++) if(i != cw.at->c.spin(j))
|
for(int i=0; i<S7; i++) if(i != cw.at->c.spin(j))
|
||||||
if(hdist(hfront, T * tC0(adjmoves[i])) < strafedist + .01)
|
if(hdist(hfront, T * tC0(adjmoves[i])) < strafedist + .01)
|
||||||
return cellwalker(cw.at->move(j), i);
|
return cellwalker(cw.at->cmove(j), i);
|
||||||
println(hlog, "incorrect strafe");
|
println(hlog, "incorrect strafe");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user