1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-05 15:49:40 +00:00

Merge pull request from akortunov/vfx

[Regression] Remove looping particles from dead actors
This commit is contained in:
Bret Curtis 2019-02-05 10:17:25 +01:00 committed by GitHub
commit 50e379ad18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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