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:
parent
5382038c4e
commit
bf128219c0
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user