1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +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);
for(int i=0; i<S7; i++) if(i != cw.at->c.spin(j))
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");
exit(1);
}