Do not reset chosen player view across levels in multiplayer demo playback (#1530)

This commit is contained in:
Julia Nechaevskaya 2024-02-23 16:37:11 +03:00 committed by GitHub
parent 00d4fdab39
commit cdbdfca73f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -960,7 +960,12 @@ static void G_DoLoadLevel(void)
} }
P_SetupLevel (gameepisode, gamemap, 0, gameskill); P_SetupLevel (gameepisode, gamemap, 0, gameskill);
// [Woof!] Do not reset chosen player view across levels in multiplayer
// demo playback. However, it must be reset when starting a new game.
if (usergame)
{
displayplayer = consoleplayer; // view the guy you are playing displayplayer = consoleplayer; // view the guy you are playing
}
// [Alaux] Update smooth count values // [Alaux] Update smooth count values
st_health = players[displayplayer].health; st_health = players[displayplayer].health;
st_armor = players[displayplayer].armorpoints; st_armor = players[displayplayer].armorpoints;