Skip to content

Commit

Permalink
IDDQD: fix reviving if god mode was already enabled (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas7770 authored Oct 27, 2023
1 parent 0a0a461 commit 89c4b8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/doom/st_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,11 @@ ST_Responder (event_t* ev)
an = plyr->mo->angle >> ANGLETOFINESHIFT;
P_SpawnMobj(plyr->mo->x+20*finecosine[an], plyr->mo->y+20*finesine[an], plyr->mo->z, MT_TFOG);
S_StartSound(plyr, sfx_slop);

// Fix reviving as "zombie" if god mode was already enabled
if (plyr->mo)
plyr->mo->health = deh_god_mode_health;
plyr->health = deh_god_mode_health;
}

plyr->cheats ^= CF_GODMODE;
Expand Down

0 comments on commit 89c4b8d

Please sign in to comment.