Don't sync position on dead monsters

This commit is contained in:
staphen 2022-01-18 23:30:10 -05:00 committed by Anders Jenbo
commit eea5a94ab3

View file

@ -152,7 +152,7 @@ void SyncMonster(int pnum, const TSyncMonster &monsterSync)
{
const int monsterId = monsterSync._mndx;
Monster &monster = Monsters[monsterId];
if (monster._mhitpoints <= 0) {
if (monster._mhitpoints <= 0 || monster._mmode == MonsterMode::Death) {
return;
}