(2a51e42a4) Set PositionUpdateInterval to zero when an item is dropped to make sure clients receive some position updates and become aware of the new position of the item

This commit is contained in:
Joonas Rikkonen
2019-04-03 16:26:28 +03:00
parent 4537c9a8cd
commit df155079cc
3 changed files with 2 additions and 58 deletions
@@ -1590,6 +1590,8 @@ namespace Barotrauma
GameMain.NetworkMember != null && (GameMain.NetworkMember.IsServer || Character.Controlled == dropper))
{
parentInventory.CreateNetworkEvent();
//send frequent updates after the item has been dropped
PositionUpdateInterval = 0.0f;
}
}