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

pull/484/head
David Cernat 6 years ago
parent a8cf1e02c4
commit d9bc1abf48

@ -70,7 +70,7 @@ namespace MWScript
MWBase::Environment::get().getWindowManager()-> MWBase::Environment::get().getWindowManager()->
messageBox("You can't change your own scale in multiplayer. Only the server can."); 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 // Ignore attempts to change another player's scale
if (mwmp::PlayerList::isDedicatedPlayer(ptr)) if (mwmp::PlayerList::isDedicatedPlayer(ptr))

Loading…
Cancel
Save