1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

fixed the reverse keyboard movement in Euclidean

This commit is contained in:
Zeno Rogue 2017-11-01 00:52:54 +01:00
parent fe3f1bf4ad
commit adfb59e78f

View File

@ -54,6 +54,8 @@ movedir vectodir(const hyperpoint& P) {
Centered = eupush(-H[0], -H[1]) * Centered; Centered = eupush(-H[0], -H[1]) * Centered;
ld binv = 99; ld binv = 99;
if(euclid) Centered = pispin * Centered;
ld dirdist[MAX_EDGE]; ld dirdist[MAX_EDGE];
for(int i=0; i<cwt.c->type; i++) { for(int i=0; i<cwt.c->type; i++) {
dirdist[i] = intval(Centered * ddspin(cwt.c, i, 0) * xpush(-.5) * C0, P); dirdist[i] = intval(Centered * ddspin(cwt.c, i, 0) * xpush(-.5) * C0, P);