mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-01 07:11:02 +00:00
Fix players spawning in the wrong spots when watching replays
This commit is contained in:
parent
6dcc4de979
commit
83738a20b7
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue