From 9eef8679287140c38f0f22435ea3f52075444cce Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 6 May 2017 08:37:51 +0300 Subject: [PATCH] [Client] Disable regular spawning of leveled creatures --- apps/openmw/mwworld/scene.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/openmw/mwworld/scene.cpp b/apps/openmw/mwworld/scene.cpp index 027c8800f..2108b62ea 100644 --- a/apps/openmw/mwworld/scene.cpp +++ b/apps/openmw/mwworld/scene.cpp @@ -8,6 +8,7 @@ Include additional headers for multiplayer purposes */ +#include #include "../mwmp/Main.hpp" #include "../mwmp/LocalPlayer.hpp" /* @@ -153,6 +154,17 @@ namespace ptr.getCellRef().setScale(2); } + /* + Start of tes3mp change (major) + + Don't insert leveled creatures; they'll be inserted later on when the server needs them + */ + if (ptr.getTypeName() == typeid(ESM::CreatureLevList).name()) + continue; + /* + End of tes3mp change (major) + */ + if (!ptr.getRefData().isDeleted() && ptr.getRefData().isEnabled()) { try