1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed iddspin

This commit is contained in:
Zeno Rogue 2019-11-14 19:23:27 +01:00
parent 1f9501f746
commit 8a2e9b7a73

View File

@ -60,7 +60,7 @@ struct hrmap {
virtual transmatrix spin_from(cell *c, int d, ld bonus=0) {
ld sa = spin_angle(c, d);
if(sa != SPIN_NOT_AVAILABLE) { return spin(bonus - sa); }
transmatrix T = spintox(tC0(iadj(c, d)));
transmatrix T = spintox(tC0(adj(c, d)));
if(WDIM == 3) return T * cspin(2, 0, bonus);
return T * spin(bonus);
}