1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

strafe: cmove not move

This commit is contained in:
Zeno Rogue 2020-01-16 16:49:52 +01:00
parent 5382038c4e
commit bf128219c0

View File

@ -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);
} }