Fix sending incorrect date values on world change

Yak shave: make more things use cTickTime. Fix a couple of incorrect modulo-on-millisecond-value by making them use WorldTickAge.
This commit is contained in:
Tiger Wang
2021-04-12 22:35:07 +01:00
parent a2a2226179
commit 4cd49d7eca
37 changed files with 322 additions and 198 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ 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)
// Process packet sending every two ticks:
if ((GetWorld()->GetWorldTickAge() % 2_tick) != 0_tick)
{
return;
}