From 41be94ec5fbc2e8f055007c7742ad931b8fe4cde Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Mon, 27 Feb 2023 23:10:14 -0700 Subject: [PATCH] Use correct ziptic size parsing RA ghosts --- src/g_demo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/g_demo.c b/src/g_demo.c index c94386d31..174511e4d 100644 --- a/src/g_demo.c +++ b/src/g_demo.c @@ -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)