1
0

Add comment for boat position broadcast

This commit is contained in:
Alexander Harkness
2020-05-04 09:13:55 +01:00
parent 07ca095740
commit 8240894d07

View File

@@ -42,6 +42,9 @@ void cBoat::SpawnOn(cClientHandle & a_ClientHandle)
void cBoat::BroadcastMovementUpdate(const cClientHandle * a_Exclude)
{
// Cannot use super::BroadcastMovementUpdate here, broadcasting position when not
// expected by the client breaks things. See https://github.com/cuberite/cuberite/pull/4488
// Process packet sending every two ticks
if (GetWorld()->GetWorldAge() % 2 != 0)
{