From 595bc5a152406111a19ee7838770943979fde092 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sun, 28 Jan 2018 05:58:56 +0200 Subject: [PATCH] [Client] Only send ObjectScale packets when scale actually changes --- apps/openmw/mwscript/transformationextensions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwscript/transformationextensions.cpp b/apps/openmw/mwscript/transformationextensions.cpp index d976d5773..ea0531fea 100644 --- a/apps/openmw/mwscript/transformationextensions.cpp +++ b/apps/openmw/mwscript/transformationextensions.cpp @@ -60,8 +60,9 @@ namespace MWScript Send an ID_OBJECT_SCALE every time an object's scale is changed through a script */ - if (ptr.isInCell()) + if (ptr.isInCell() && (ptr.getCellRef().getScale() != scale)) { + mwmp::WorldEvent *worldEvent = mwmp::Main::get().getNetworking()->getWorldEvent(); worldEvent->reset(); worldEvent->addObjectScale(ptr, scale);