forked from mirror/openmw-tes3mp
[Client] Only send ObjectScale packets for objects located in cells
This commit is contained in:
parent
ac27ca663b
commit
056d54e9f7
1 changed files with 7 additions and 4 deletions
|
@ -60,10 +60,13 @@ namespace MWScript
|
|||
Send an ID_OBJECT_SCALE every time an object's scale is changed
|
||||
through a script
|
||||
*/
|
||||
if (ptr.isInCell())
|
||||
{
|
||||
mwmp::WorldEvent *worldEvent = mwmp::Main::get().getNetworking()->getWorldEvent();
|
||||
worldEvent->reset();
|
||||
worldEvent->addObjectScale(ptr, scale);
|
||||
worldEvent->sendObjectScale();
|
||||
}
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue