[Client] Disable regular spawning of leveled creatures

This commit is contained in:
David Cernat 2017-05-06 08:37:51 +03:00
parent 3def111ca1
commit 9eef867928

View file

@ -8,6 +8,7 @@
Include additional headers for multiplayer purposes
*/
#include <components/openmw-mp/Log.hpp>
#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