mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 11:06:43 +00:00
[Client] Only send ObjectScale packets when scale actually changes
This commit is contained in:
parent
613adf6b30
commit
595bc5a152
1 changed files with 2 additions and 1 deletions
|
@ -60,8 +60,9 @@ namespace MWScript
|
||||||
Send an ID_OBJECT_SCALE every time an object's scale is changed
|
Send an ID_OBJECT_SCALE every time an object's scale is changed
|
||||||
through a script
|
through a script
|
||||||
*/
|
*/
|
||||||
if (ptr.isInCell())
|
if (ptr.isInCell() && (ptr.getCellRef().getScale() != scale))
|
||||||
{
|
{
|
||||||
|
|
||||||
mwmp::WorldEvent *worldEvent = mwmp::Main::get().getNetworking()->getWorldEvent();
|
mwmp::WorldEvent *worldEvent = mwmp::Main::get().getNetworking()->getWorldEvent();
|
||||||
worldEvent->reset();
|
worldEvent->reset();
|
||||||
worldEvent->addObjectScale(ptr, scale);
|
worldEvent->addObjectScale(ptr, scale);
|
||||||
|
|
Loading…
Reference in a new issue