Merge pull request #9933 from ZehMatt/fix-desync-regression

Fix desync regression
This commit is contained in:
Ted John authored and GitHub committed 2019-08-24 16:33:20 +01:00
commit f23e3368b1
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -132,6 +132,10 @@ namespace GameActions
"%08X\n",
queued.uniqueId, queued.tick, currentTick);
}
else if (queued.tick > currentTick)
{
return;
}
}
// Remove ghost scenery so it doesn't interfere with incoming network command
@@ -293,7 +297,9 @@ namespace GameActions
MemoryStream& output = ctx.output;
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));
+1 -1
View File
@@ -34,7 +34,7 @@
// This string specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "8"
#define NETWORK_STREAM_VERSION "9"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;