- Duke: Reset p->dead_flag when enabling the god cheat as per original behaviour.

* Fixes #172.
This commit is contained in:
Mitchell Richters 2020-11-12 18:21:42 +11:00
parent 2ee18b3a11
commit 4dc1797345

View file

@ -63,8 +63,10 @@ static const char *cheatGod(int myconnectindex, int state)
if (state == -1) state = !ud.god;
ud.god = state;
auto act = ps[myconnectindex].GetActor();
auto* p = &ps[myconnectindex];
auto act = p->GetActor();
p->dead_flag = 0;
act->s.extra = max_player_health;
act->extra = 0;
if (ud.god)