From 6eb77e215b0ed2f8fcf88d646a31985c832a1b5d Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Tue, 5 Feb 2019 11:02:19 +0400 Subject: [PATCH] Remove looping particles from dead actors --- apps/openmw/mwmechanics/actors.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/actors.cpp b/apps/openmw/mwmechanics/actors.cpp index 7e2c6cd8e..03ed862e6 100644 --- a/apps/openmw/mwmechanics/actors.cpp +++ b/apps/openmw/mwmechanics/actors.cpp @@ -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