1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 06:07:12 +00:00

whirl:: fix ggshmup and calc_relative_matrix (also seems to fix nonbitrunc in general)

This commit is contained in:
Zeno Rogue
2018-04-06 23:20:04 +02:00
parent f5cd14c3c5
commit 63f50a1136
3 changed files with 12 additions and 3 deletions

View File

@@ -456,6 +456,10 @@ transmatrix actualV(const heptspin& hs, const transmatrix& V) {
return (hs.spin || nonbitrunc) ? V * spin(hs.spin*2*M_PI/S7 + (nonbitrunc ? M_PI:0) + whirl::alpha) : V;
}
transmatrix applyspin(const heptspin& hs, const transmatrix& V) {
return (hs.spin || nonbitrunc) ? V * spin(hs.spin*2*M_PI/S7) : V;
}
namespace whirl {
/*