mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'fix-ghost-checks' into 'master'
Use correct ziptic size parsing RA ghosts See merge request KartKrew/Kart!989
This commit is contained in:
commit
5ee9b9d5b6
1 changed files with 4 additions and 2 deletions
|
|
@ -1184,7 +1184,7 @@ void G_GhostTicker(void)
|
|||
for(g = ghosts, p = NULL; g; g = g->next)
|
||||
{
|
||||
// Skip normal demo data.
|
||||
UINT8 ziptic = READUINT8(g->p);
|
||||
UINT16 ziptic = READUINT8(g->p);
|
||||
UINT8 xziptic = 0;
|
||||
|
||||
while (ziptic != DW_END) // Get rid of extradata stuff
|
||||
|
|
@ -1225,12 +1225,14 @@ void G_GhostTicker(void)
|
|||
ziptic = READUINT8(g->p);
|
||||
}
|
||||
|
||||
ziptic = READUINT8(g->p);
|
||||
ziptic = READUINT16(g->p);
|
||||
|
||||
if (ziptic & ZT_FWD)
|
||||
g->p++;
|
||||
if (ziptic & ZT_TURNING)
|
||||
g->p += 2;
|
||||
if (ziptic & ZT_ANGLE)
|
||||
g->p += 2;
|
||||
if (ziptic & ZT_THROWDIR)
|
||||
g->p += 2;
|
||||
if (ziptic & ZT_BUTTONS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue