From 3994697fbdcf5a6047f7adaf3b68e7cbaf2c8268 Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Thu, 26 Oct 2017 16:58:18 +0100 Subject: [PATCH] Fix all NiGHTS demo desyncs! (More specifically: compare with d_netcmd.c's order of operations - it's skin change, then g_initnew, then demo start, NOT g_initnew then skin change then demo start!!!!! --- src/g_game.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index 74e6a6b73..5c6976622 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -5496,6 +5496,9 @@ void G_DoPlayDemo(char *defdemoname) // didn't start recording right away. demo_start = false; + // Set skin + SetPlayerSkin(0, skin); + #ifdef HAVE_BLUA LUAh_MapChange(); #endif @@ -5505,9 +5508,6 @@ void G_DoPlayDemo(char *defdemoname) P_SetRandSeed(randseed); G_InitNew(false, G_BuildMapName(gamemap), true, true, false); - // Set skin - SetPlayerSkin(0, skin); - // Set color for (i = 0; i < MAXSKINCOLORS; i++) if (!stricmp(Color_Names[i],color))