forked from mirror/openmw-tes3mp
[Client] Disable regular spawning of leveled creatures
This commit is contained in:
parent
3def111ca1
commit
9eef867928
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue