Fix players spawning in the wrong spots when watching replays

This commit is contained in:
fickleheart 2019-01-12 02:48:18 -06:00
parent 6dcc4de979
commit 83738a20b7
1 changed files with 2 additions and 3 deletions

View File

@ -4364,7 +4364,7 @@ void G_InitNew(UINT8 pencoremode, const char *mapname, boolean resetplayer, bool
players[i].marescore = 0; players[i].marescore = 0;
if (resetplayer) // SRB2Kart if (resetplayer && !(multiplayer && demoplayback)) // SRB2Kart
{ {
players[i].score = 0; players[i].score = 0;
} }
@ -5983,7 +5983,6 @@ void G_DoPlayDemo(char *defdemoname)
while (p != 0xFF) while (p != 0xFF)
{ {
player = &players[p];
if (!playeringame[displayplayer]) if (!playeringame[displayplayer])
displayplayer = consoleplayer = p; displayplayer = consoleplayer = p;
playeringame[p] = true; playeringame[p] = true;
@ -6008,7 +6007,7 @@ void G_DoPlayDemo(char *defdemoname)
} }
// Score, since Kart uses this to determine where you start on the map // Score, since Kart uses this to determine where you start on the map
player->score = READUINT32(demo_p); players[p].score = READUINT32(demo_p);
// Look for the next player // Look for the next player
p = READUINT8(demo_p); p = READUINT8(demo_p);