mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 19:21:04 +00:00
Merge pull request #2158 from akortunov/vfx
[Regression] Remove looping particles from dead actors
This commit is contained in:
commit
50e379ad18
@ -1350,7 +1350,10 @@ namespace MWMechanics
|
|||||||
player.getClass().getCreatureStats(player).setHitAttemptActorId(-1);
|
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();
|
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
|
MWWorld::Ptr actor = iter->first; // make a copy of the map key to avoid it being invalidated when the player teleports
|
||||||
|
Loading…
x
Reference in New Issue
Block a user