mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix desyncs because of GameActions ignoring the tick on client
This commit is contained in:
parent
91d02093f9
commit
d6d480a31b
|
@ -132,6 +132,10 @@ namespace GameActions
|
||||||
"%08X\n",
|
"%08X\n",
|
||||||
queued.uniqueId, queued.tick, currentTick);
|
queued.uniqueId, queued.tick, currentTick);
|
||||||
}
|
}
|
||||||
|
else if (queued.tick > currentTick)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove ghost scenery so it doesn't interfere with incoming network command
|
// Remove ghost scenery so it doesn't interfere with incoming network command
|
||||||
|
@ -293,7 +297,9 @@ namespace GameActions
|
||||||
MemoryStream& output = ctx.output;
|
MemoryStream& output = ctx.output;
|
||||||
|
|
||||||
char temp[128] = {};
|
char temp[128] = {};
|
||||||
snprintf(temp, sizeof(temp), "[%s] GA: %s (%08X) (", GetRealm(), action->GetName(), action->GetType());
|
snprintf(
|
||||||
|
temp, sizeof(temp), "[%s] Tick: %u, GA: %s (%08X) (", GetRealm(), gCurrentTicks, action->GetName(),
|
||||||
|
action->GetType());
|
||||||
|
|
||||||
output.Write(temp, strlen(temp));
|
output.Write(temp, strlen(temp));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue