1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 03:09:59 +00:00

fixed keyboard movement in non-orientable geometries

This commit is contained in:
Zeno Rogue 2018-09-10 18:46:09 +02:00
parent 6d7ff11ef5
commit a95aa0a2fa

View File

@ -66,7 +66,7 @@ movedir vectodir(const hyperpoint& P) {
for(int i=0; i<cwt.at->type; i++) {
transmatrix T;
if(compute_relamatrix(cwt.at->modmove(cwt.spin + i), cwt.at, i, T)) {
if(compute_relamatrix((cwt+i).peek(), cwt.at, i, T)) {
dirdist[i] = intval(U * T * C0, Centered * P);
}
//xspinpush0(-i * 2 * M_PI /cwt.at->type, .5), P);