mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- cleaned up player reinitialization upon new game
This commit is contained in:
parent
b64dfb54a5
commit
73d9751bb4
1 changed files with 6 additions and 6 deletions
|
@ -365,14 +365,14 @@ void G_NewInit ()
|
|||
{
|
||||
player_t *p = &players[i];
|
||||
userinfo_t saved_ui;
|
||||
saved_ui.TransferFrom(players[i].userinfo);
|
||||
int chasecam = p->cheats & CF_CHASECAM;
|
||||
saved_ui.TransferFrom(p->userinfo);
|
||||
const int chasecam = p->cheats & CF_CHASECAM;
|
||||
p->~player_t();
|
||||
::new(p) player_t;
|
||||
players[i].cheats |= chasecam;
|
||||
players[i].playerstate = PST_DEAD;
|
||||
playeringame[i] = 0;
|
||||
players[i].userinfo.TransferFrom(saved_ui);
|
||||
p->cheats |= chasecam;
|
||||
p->playerstate = PST_DEAD;
|
||||
p->userinfo.TransferFrom(saved_ui);
|
||||
playeringame[i] = false;
|
||||
}
|
||||
BackupSaveName = "";
|
||||
consoleplayer = 0;
|
||||
|
|
Loading…
Reference in a new issue