Add comment for boat position broadcast
This commit is contained in:
parent
07ca095740
commit
8240894d07
@ -42,6 +42,9 @@ void cBoat::SpawnOn(cClientHandle & a_ClientHandle)
|
|||||||
|
|
||||||
void cBoat::BroadcastMovementUpdate(const cClientHandle * a_Exclude)
|
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
|
// Process packet sending every two ticks
|
||||||
if (GetWorld()->GetWorldAge() % 2 != 0)
|
if (GetWorld()->GetWorldAge() % 2 != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user