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.
This commit is contained in:
dongresource 2020-10-12 21:18:03 +02:00
parent f8d64234d7
commit c792fb9d0d

View File

@ -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"];