Fix replays, which were broken because all the player struct info was being clobbered IMMEDIATELY after reading it from the demo :mothpensive:

This commit is contained in:
toaster 2021-04-03 19:48:50 +01:00
parent 690244825b
commit d302693946

View file

@ -3048,11 +3048,6 @@ void G_DoPlayDemo(char *defdemoname)
R_ExecuteSetViewSize();
LUAh_MapChange(gamemap);
memset(displayplayers, 0, sizeof(displayplayers));
consoleplayer = 0;
memset(playeringame,0,sizeof(playeringame));
playeringame[0] = true;
P_SetRandSeed(randseed);
G_InitNew(demoflags & DF_ENCORE, G_BuildMapName(gamemap), true, true, false); // Doesn't matter whether you reset or not here, given changes to resetplayer.