1
0
Fork 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
No known key found for this signature in database
GPG Key ID: 5187245ADF160B76
1 changed files with 3 additions and 0 deletions

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)
{