From 04ba324290f2f9275eec962284d1acce32a7e29a Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sun, 8 Jul 2018 03:31:48 +0300 Subject: [PATCH] [Client] Disable clientside disabling and enabling of objects --- apps/openmw/mwscript/interpretercontext.cpp | 22 +++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwscript/interpretercontext.cpp b/apps/openmw/mwscript/interpretercontext.cpp index fd5ffae00..196e85d55 100644 --- a/apps/openmw/mwscript/interpretercontext.cpp +++ b/apps/openmw/mwscript/interpretercontext.cpp @@ -608,7 +608,16 @@ namespace MWScript End of tes3mp addition */ - MWBase::Environment::get().getWorld()->enable (ref); + /* + Start of tes3mp change (major) + + Disable unilateral state enabling on this client and expect the server's reply to our + packet to do it instead + */ + //MWBase::Environment::get().getWorld()->enable (ref); + /* + End of tes3mp change (major) + */ } void InterpreterContext::disable (const std::string& id) @@ -636,7 +645,16 @@ namespace MWScript End of tes3mp addition */ - MWBase::Environment::get().getWorld()->disable (ref); + /* + Start of tes3mp change (major) + + Disable unilateral state disabling on this client and expect the server's reply to our + packet to do it instead + */ + //MWBase::Environment::get().getWorld()->disable (ref); + /* + End of tes3mp change (major) + */ } int InterpreterContext::getMemberShort (const std::string& id, const std::string& name,