From 72d496cd88c96808047e87fd41a4d0cf06a79a08 Mon Sep 17 00:00:00 2001 From: Jesse Ruderman Date: Sat, 10 Jul 2021 04:59:50 -0700 Subject: [PATCH] reduceOrbPowers: only call mine::auto_teleport_charges once --- orbs.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/orbs.cpp b/orbs.cpp index 2e489cc6..1b918916 100644 --- a/orbs.cpp +++ b/orbs.cpp @@ -99,9 +99,6 @@ EX bool reduceOrbPower(eItem it, int cap) { return true; } if(items[it] > cap && timerghost) items[it] = cap; - #if CAP_COMPLEX2 - mine::auto_teleport_charges(); - #endif return false; } @@ -210,6 +207,10 @@ EX void reduceOrbPowers() { reduceOrbPower(itCurseRepulsion, 199); reduceOrbPower(itCurseGluttony, 199); + #if CAP_COMPLEX2 + mine::auto_teleport_charges(); + #endif + whirlwind::calcdirs(cwt.at); items[itStrongWind] = !items[itOrbAether] && whirlwind::qdirs == 1; items[itWarning] = 0;