forked from mirror/openmw-tes3mp
Re-enable collision when an actor is resurrected
This commit is contained in:
parent
16ceb382f4
commit
d2ad2e0f31
1 changed files with 4 additions and 0 deletions
|
@ -989,7 +989,11 @@ namespace MWMechanics
|
|||
if(!stats.isDead())
|
||||
{
|
||||
if(iter->second->isDead())
|
||||
{
|
||||
// Actor has been resurrected. Notify the CharacterController and re-enable collision.
|
||||
MWBase::Environment::get().getWorld()->enableActorCollision(iter->first, true);
|
||||
iter->second->resurrect();
|
||||
}
|
||||
|
||||
if(!stats.isDead())
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue