used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable

This commit is contained in:
Zeno Rogue committed 2022-11-13 16:22:55 +01:00
1 parent 563b9c1f74
commit 06523e063e
100 files changed
+750 -757

No files matched your search

+2 -2
View File
@@ -304,7 +304,7 @@ EX ld calcAirdir(cell *c) {
for(int i=0; i<c->type; i++) {
cell *c2 = c->move(i);
if(c2 && c2->monst == moAirElemental) {
return c->c.spin(i) * 2 * M_PI / c2->type;
return c->c.spin(i) * TAU / c2->type;
}
}
for(int i=0; i<c->type; i++) {
@@ -315,7 +315,7 @@ EX ld calcAirdir(cell *c) {
for(int i=0; i<c2->type; i++) {
cell *c3 = c2->move(i);
if(c3 && c3->monst == moAirElemental) {
return c2->c.spin(i) * 2 * M_PI / c3->type;
return c2->c.spin(i) * TAU / c3->type;
}
}
}