From d9bc1abf485eaff0092412b8e2433ffa5dfcf1f8 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Fri, 26 Oct 2018 02:33:47 +0300 Subject: [PATCH] [Client] Don't send ObjectScale packets if not logged in --- apps/openmw/mwscript/transformationextensions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwscript/transformationextensions.cpp b/apps/openmw/mwscript/transformationextensions.cpp index 8594b6fc2..cf603c4fd 100644 --- a/apps/openmw/mwscript/transformationextensions.cpp +++ b/apps/openmw/mwscript/transformationextensions.cpp @@ -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))