mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
Disable PR_ITEM_DEBRIS detections in staffsync
This commit is contained in:
parent
55192eaf39
commit
667ad18339
1 changed files with 17 additions and 7 deletions
|
|
@ -303,18 +303,23 @@ boolean G_ConsiderEndingDemoRead(void)
|
|||
}
|
||||
|
||||
// Demo failed sync during a sync test! Log the failure to be reported later.
|
||||
static void G_FailStaffSync(staffsync_reason_t reason, UINT32 extra)
|
||||
static boolean G_FailStaffSync(staffsync_reason_t reason, UINT32 extra)
|
||||
{
|
||||
if (!staffsync)
|
||||
return;
|
||||
return true;
|
||||
|
||||
if (staffsync_results[staffsync_failed].reason != 0)
|
||||
return;
|
||||
return false;
|
||||
|
||||
if (reason == SYNC_RNG && extra == PR_ITEM_DEBRIS)
|
||||
return false;
|
||||
|
||||
staffsync_results[staffsync_failed].map = gamemap;
|
||||
memcpy(&staffsync_results[staffsync_failed].name, player_names[consoleplayer], sizeof(player_names[consoleplayer]));
|
||||
staffsync_results[staffsync_failed].reason = reason;
|
||||
staffsync_results[staffsync_failed].extra = extra;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void G_ReadDemoExtraData(void)
|
||||
|
|
@ -486,11 +491,16 @@ void G_ReadDemoExtraData(void)
|
|||
|
||||
if (demosynced)
|
||||
{
|
||||
CONS_Alert(CONS_WARNING, "Demo playback has desynced (RNG class %d)!\n", i);
|
||||
G_FailStaffSync(SYNC_RNG, i);
|
||||
if (G_FailStaffSync(SYNC_RNG, i))
|
||||
{
|
||||
CONS_Alert(CONS_WARNING, "Demo playback has desynced (RNG class %d)!\n", i);
|
||||
storesynced = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
storesynced = false;
|
||||
}
|
||||
|
||||
storesynced = false;
|
||||
}
|
||||
}
|
||||
demosynced = storesynced;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue