From 8fab258778b46e34de080f8fc94dec2b31817ee6 Mon Sep 17 00:00:00 2001 From: hayaunderscore Date: Sun, 26 Nov 2023 10:16:16 +0800 Subject: [PATCH] Hopefully fix the localskin replay issues :pray: --- src/g_game.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/g_game.c b/src/g_game.c index aa0296560..a70f38f04 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -3351,7 +3351,7 @@ void G_AddPlayer(INT32 playernum) p->jointime = 0; p->playerstate = PST_REBORN; - demo_extradata[playernum] |= DXD_PLAYSTATE|DXD_COLOR|DXD_NAME|DXD_SKIN|DXD_LOCALSKIN; // Set everything + demo_extradata[playernum] |= DXD_LOCALSKIN|DXD_PLAYSTATE|DXD_COLOR|DXD_NAME|DXD_SKIN; // Set everything } void G_ExitLevel(void) @@ -6109,6 +6109,8 @@ void G_GhostTicker(void) g->p += 16; // yea if (ziptic & DXD_PLAYSTATE && READUINT8(g->p) != DXD_PST_PLAYING) I_Error("Ghost is not a record attack ghost"); //@TODO lmao don't blow up like this + if (ziptic & DXD_LOCALSKIN) // originally this line was above the playstate check which causes the crash so uhh dont do that + g->p += 16; // not you too! } else if (ziptic == DW_RNG) g->p += 4; // RNG seed