mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +00:00
fixed iddspin
This commit is contained in:
parent
1f9501f746
commit
8a2e9b7a73
2
cell.cpp
2
cell.cpp
@ -60,7 +60,7 @@ struct hrmap {
|
|||||||
virtual transmatrix spin_from(cell *c, int d, ld bonus=0) {
|
virtual transmatrix spin_from(cell *c, int d, ld bonus=0) {
|
||||||
ld sa = spin_angle(c, d);
|
ld sa = spin_angle(c, d);
|
||||||
if(sa != SPIN_NOT_AVAILABLE) { return spin(bonus - sa); }
|
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);
|
if(WDIM == 3) return T * cspin(2, 0, bonus);
|
||||||
return T * spin(bonus);
|
return T * spin(bonus);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user