Replay consistency: sync bumper count correctly

This commit is contained in:
James R 2024-01-17 03:00:20 -08:00
parent 3aace4f777
commit dffc48849c

View file

@ -858,7 +858,7 @@ void G_WriteGhostTic(mobj_t *ghost, INT32 playernum)
if (ghost->player && ( if (ghost->player && (
ghostext[playernum].itemtype != ghost->player->itemtype || ghostext[playernum].itemtype != ghost->player->itemtype ||
ghostext[playernum].itemamount != ghost->player->itemamount || ghostext[playernum].itemamount != ghost->player->itemamount ||
ghostext[playernum].health < ghost->health ghostext[playernum].health != ghost->health
)) ))
{ {
ghostext[playernum].flags |= EZT_ITEMDATA; ghostext[playernum].flags |= EZT_ITEMDATA;
@ -1179,7 +1179,7 @@ void G_ConsGhostTic(INT32 playernum)
if (players[playernum].itemtype != ghostext[playernum].itemtype if (players[playernum].itemtype != ghostext[playernum].itemtype
|| players[playernum].itemamount != ghostext[playernum].itemamount || players[playernum].itemamount != ghostext[playernum].itemamount
|| testmo->health < ghostext[playernum].health) || testmo->health != ghostext[playernum].health)
{ {
if (demosynced) if (demosynced)
CONS_Alert(CONS_WARNING, M_GetText("Demo playback has desynced (item/bumpers)!\n")); CONS_Alert(CONS_WARNING, M_GetText("Demo playback has desynced (item/bumpers)!\n"));