mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 20:40:47 +00:00
- Duke: Reset p->dead_flag
when enabling the god cheat as per original behaviour.
* Fixes #172.
This commit is contained in:
parent
2ee18b3a11
commit
4dc1797345
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue