mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-01 07:11:02 +00:00
Backwards compat for old replays
This commit is contained in:
parent
4bea570143
commit
e7488f8d76
1 changed files with 4 additions and 1 deletions
|
@ -319,6 +319,7 @@ static struct {
|
||||||
|
|
||||||
// EZT_KART
|
// EZT_KART
|
||||||
INT32 kartitem, kartamount, kartbumpers;
|
INT32 kartitem, kartamount, kartbumpers;
|
||||||
|
boolean kartresync; //@TODO backwards compat with old replays. remove eventually
|
||||||
|
|
||||||
// EZT_HIT
|
// EZT_HIT
|
||||||
UINT16 hits;
|
UINT16 hits;
|
||||||
|
@ -5332,6 +5333,7 @@ void G_ConsGhostTic(INT32 playernum)
|
||||||
ghostext[playernum].kartitem = READINT32(demo_p);
|
ghostext[playernum].kartitem = READINT32(demo_p);
|
||||||
ghostext[playernum].kartamount = READINT32(demo_p);
|
ghostext[playernum].kartamount = READINT32(demo_p);
|
||||||
ghostext[playernum].kartbumpers = READINT32(demo_p);
|
ghostext[playernum].kartbumpers = READINT32(demo_p);
|
||||||
|
ghostext[playernum].kartresync = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5357,9 +5359,10 @@ void G_ConsGhostTic(INT32 playernum)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
ghostext[playernum].kartresync && (
|
||||||
players[playernum].kartstuff[k_itemtype] != ghostext[playernum].kartitem ||
|
players[playernum].kartstuff[k_itemtype] != ghostext[playernum].kartitem ||
|
||||||
players[playernum].kartstuff[k_itemamount] != ghostext[playernum].kartamount ||
|
players[playernum].kartstuff[k_itemamount] != ghostext[playernum].kartamount ||
|
||||||
players[playernum].kartstuff[k_bumper] != ghostext[playernum].kartbumpers
|
players[playernum].kartstuff[k_bumper] != ghostext[playernum].kartbumpers)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (demosynced)
|
if (demosynced)
|
||||||
|
|
Loading…
Reference in a new issue