mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-27 05:37:25 +00:00
Unbreak respawns and fix #7588
This commit is contained in:
parent
33b57d9134
commit
f6626e36cf
apps/openmw
@ -133,6 +133,12 @@ namespace MWLua
|
||||
else
|
||||
{
|
||||
newPtr = world->moveObject(ptr, destCell, pos);
|
||||
if (MWBase::Environment::get().getWorldScene()->isCellActive(*srcCell))
|
||||
{
|
||||
ESM::RefId script = cls.getScript(newPtr);
|
||||
if (!script.empty())
|
||||
world->getLocalScripts().add(script, newPtr);
|
||||
}
|
||||
world->rotateObject(newPtr, rot, MWBase::RotationFlag_none);
|
||||
}
|
||||
if (placeOnGround)
|
||||
|
@ -1239,7 +1239,7 @@ namespace MWWorld
|
||||
// no need to clearCorpse, handled as part of get<ESM::Creature>()
|
||||
if (!ptr.getRefData().isDeleted())
|
||||
ptr.getClass().respawn(ptr);
|
||||
return false;
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user