1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:53:50 +00:00

enabling / disabling should not affect scripts

This commit is contained in:
Tom Mason 2013-01-21 20:06:08 +00:00
parent 31c71c029d
commit f5f3c2e62d

View file

@ -427,8 +427,6 @@ namespace MWWorld
{ {
reference.getRefData().enable(); reference.getRefData().enable();
addContainerScripts(reference, reference.getCell());
if(mWorldScene->getActiveCells().find (reference.getCell()) != mWorldScene->getActiveCells().end() && reference.getRefData().getCount()) if(mWorldScene->getActiveCells().find (reference.getCell()) != mWorldScene->getActiveCells().end() && reference.getRefData().getCount())
mWorldScene->addObjectToScene (reference); mWorldScene->addObjectToScene (reference);
} }
@ -459,10 +457,6 @@ namespace MWWorld
{ {
reference.getRefData().disable(); reference.getRefData().disable();
removeContainerScripts(reference);
if(MWWorld::Class::get(reference).getScript(reference) != "")
mLocalScripts.remove(reference);
if(mWorldScene->getActiveCells().find (reference.getCell())!=mWorldScene->getActiveCells().end() && reference.getRefData().getCount()) if(mWorldScene->getActiveCells().find (reference.getCell())!=mWorldScene->getActiveCells().end() && reference.getRefData().getCount())
mWorldScene->removeObjectFromScene (reference); mWorldScene->removeObjectFromScene (reference);
} }