mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 18:39:55 +00:00
Remove looping particles from dead actors
This commit is contained in:
parent
bc1fbd5400
commit
6eb77e215b
1 changed files with 4 additions and 1 deletions
|
@ -1350,7 +1350,10 @@ namespace MWMechanics
|
|||
player.getClass().getCreatureStats(player).setHitAttemptActorId(-1);
|
||||
}
|
||||
|
||||
if (!iter->first.getClass().getCreatureStats(iter->first).isDead())
|
||||
// For dead actors we need to remove looping spell particles
|
||||
if (iter->first.getClass().getCreatureStats(iter->first).isDead())
|
||||
ctrl->updateContinuousVfx();
|
||||
else
|
||||
{
|
||||
bool cellChanged = world->hasCellChanged();
|
||||
MWWorld::Ptr actor = iter->first; // make a copy of the map key to avoid it being invalidated when the player teleports
|
||||
|
|
Loading…
Reference in a new issue