1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 09:27:40 +00:00

fixed aura specials

This commit is contained in:
Zeno Rogue
2018-12-22 22:39:33 +01:00
parent b90e3a4ed2
commit 058a2a5027

View File

@@ -2256,7 +2256,7 @@ void apply_joukowsky_aura(hyperpoint& h) {
void addauraspecial(hyperpoint h, color_t col, int dir) { void addauraspecial(hyperpoint h, color_t col, int dir) {
if(!haveaura()) return; if(!haveaura()) return;
apply_joukowsky_aura(h); apply_joukowsky_aura(h);
int r = int(2*AURA + dir + atan2(h[0], h[1]) * AURA / 2 / M_PI) % AURA; int r = int(2*AURA + dir + atan2(h[1], h[0]) * AURA / 2 / M_PI) % AURA;
auraspecials.emplace_back(r, col); auraspecials.emplace_back(r, col);
} }