1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 11:09:40 +00:00

[Client] Don't send ObjectScale packets if not logged in

This commit is contained in:
David Cernat 2018-10-26 02:33:47 +03:00
parent a8cf1e02c4
commit d9bc1abf48

View file

@ -70,7 +70,7 @@ namespace MWScript
MWBase::Environment::get().getWindowManager()->
messageBox("You can't change your own scale in multiplayer. Only the server can.");
}
else if (ptr.isInCell() && ptr.getCellRef().getScale() != scale)
else if (mwmp::Main::get().getLocalPlayer()->isLoggedIn() && ptr.isInCell() && ptr.getCellRef().getScale() != scale)
{
// Ignore attempts to change another player's scale
if (mwmp::PlayerList::isDedicatedPlayer(ptr))