1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

binary:: no spin

This commit is contained in:
Zeno Rogue 2018-08-14 09:16:30 +02:00
parent 12ce3a6a9b
commit c54d01b50c

View File

@ -505,10 +505,12 @@ ld master_to_c7_angle() {
transmatrix actualV(const heptspin& hs, const transmatrix& V) {
if(irr::on)
return V * spin(M_PI + 2 * M_PI / S7 * (hs.spin + irr::periodmap[hs.h].base.spin));
if(binarytiling) return V;
return (hs.spin || nonbitrunc) ? V * spin(hs.spin*2*M_PI/S7 + master_to_c7_angle()) : V;
}
transmatrix applyspin(const heptspin& hs, const transmatrix& V) {
if(binarytiling) return V;
return hs.spin ? V * spin(hs.spin*2*M_PI/S7) : V;
}