mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-14 02:10:06 +00:00
Do not tick dead players.
This fixes the "dancing in Fusion Matter" bug. Also (temporarily?) added updateNPCPosition() to the suppression list. Might want to take it out again (along with some of the other ones) if we do end up implementing Chunk GC.
This commit is contained in:
parent
97c2c532f1
commit
c9be0e5402
@ -547,6 +547,10 @@ void MobManager::playerTick(CNServer *serv, time_t currTime) {
|
||||
Player *plr = pair.second.plr;
|
||||
bool transmit = false;
|
||||
|
||||
// do not tick dead players
|
||||
if (plr->HP <= 0)
|
||||
continue;
|
||||
|
||||
// fm patch/lake damage
|
||||
if (plr->dotDamage)
|
||||
dealGooDamage(sock, 150);
|
||||
@ -615,4 +619,4 @@ std::pair<int,int> MobManager::getDamage(int attackPower, int defensePower, bool
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user