mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 21:40:05 +00:00
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:
parent
f8d64234d7
commit
c792fb9d0d
@ -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)
|
if (currTime == 0)
|
||||||
currTime = getTime();
|
currTime = getTime();
|
||||||
|
|
||||||
@ -399,8 +399,6 @@ void MobManager::roamingStep(Mob *mob, time_t currTime) {
|
|||||||
if (it != TransportManager::NPCQueues.end() && it->second.empty())
|
if (it != TransportManager::NPCQueues.end() && it->second.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
std::cout << "charting new path for Mob " << (int)mob->appearanceData.iNPC_ID << std::endl;
|
|
||||||
|
|
||||||
int xStart = mob->spawnX - mob->idleRange/2;
|
int xStart = mob->spawnX - mob->idleRange/2;
|
||||||
int yStart = mob->spawnY - mob->idleRange/2;
|
int yStart = mob->spawnY - mob->idleRange/2;
|
||||||
int speed = mob->data["m_iWalkSpeed"];
|
int speed = mob->data["m_iWalkSpeed"];
|
||||||
|
Loading…
Reference in New Issue
Block a user