Skip to content

Commit

Permalink
Fix damage tint cap
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlaux committed Apr 29, 2023
1 parent 90e1a43 commit 6938019
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/p_inter.c
Original file line number Diff line number Diff line change
Expand Up @@ -992,11 +992,12 @@ void P_DamageMobj(mobj_t *target,mobj_t *inflictor, mobj_t *source, int damage)
player->attacker = source;
player->damagecount += damage; // add damage after armor / invuln

if (player->damagecount > 100)
player->damagecount = 100; // teleport stomp does 10k points...
// [Nugget] Custom red tint cap
else if (STRICTMODE(player->damagecount > damagecount_cap))
if (STRICTMODE(player->damagecount > damagecount_cap))
{ player->damagecount = damagecount_cap; }
else
if (player->damagecount > 100)
player->damagecount = 100; // teleport stomp does 10k points...

#if 0
// killough 11/98:
Expand Down

0 comments on commit 6938019

Please sign in to comment.