mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- fixed lost settings controller state upon new game
https://forum.zdoom.org/viewtopic.php?t=62959
This commit is contained in:
parent
73d9751bb4
commit
b3d6dfb55f
1 changed files with 2 additions and 0 deletions
|
@ -367,8 +367,10 @@ void G_NewInit ()
|
||||||
userinfo_t saved_ui;
|
userinfo_t saved_ui;
|
||||||
saved_ui.TransferFrom(p->userinfo);
|
saved_ui.TransferFrom(p->userinfo);
|
||||||
const int chasecam = p->cheats & CF_CHASECAM;
|
const int chasecam = p->cheats & CF_CHASECAM;
|
||||||
|
const bool settings_controller = p->settings_controller;
|
||||||
p->~player_t();
|
p->~player_t();
|
||||||
::new(p) player_t;
|
::new(p) player_t;
|
||||||
|
p->settings_controller = settings_controller;
|
||||||
p->cheats |= chasecam;
|
p->cheats |= chasecam;
|
||||||
p->playerstate = PST_DEAD;
|
p->playerstate = PST_DEAD;
|
||||||
p->userinfo.TransferFrom(saved_ui);
|
p->userinfo.TransferFrom(saved_ui);
|
||||||
|
|
Loading…
Reference in a new issue