From c792fb9d0dc16128f2e9caeb86220c972e65ee6d Mon Sep 17 00:00:00 2001 From: dongresource Date: Mon, 12 Oct 2020 21:18:03 +0200 Subject: [PATCH] Clang lied to me. It's reasonable that you can't use inline like this, but in my defense it worked until MobManager.o was recomplied, I think. --- src/MobManager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/MobManager.cpp b/src/MobManager.cpp index 1887c02..f906bd5 100644 --- a/src/MobManager.cpp +++ b/src/MobManager.cpp @@ -367,7 +367,7 @@ void MobManager::combatStep(Mob *mob, time_t currTime) { } } -inline void MobManager::incNextMovement(Mob *mob, time_t currTime) { +void MobManager::incNextMovement(Mob *mob, time_t currTime) { if (currTime == 0) currTime = getTime(); @@ -399,8 +399,6 @@ void MobManager::roamingStep(Mob *mob, time_t currTime) { if (it != TransportManager::NPCQueues.end() && it->second.empty()) return; - std::cout << "charting new path for Mob " << (int)mob->appearanceData.iNPC_ID << std::endl; - int xStart = mob->spawnX - mob->idleRange/2; int yStart = mob->spawnY - mob->idleRange/2; int speed = mob->data["m_iWalkSpeed"];