Skip to content

Commit

Permalink
Merge remote-tracking branch 'Half-LifeUpdated/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Nov 5, 2023
2 parents 3a0edf3 + 7fbcced commit ef8c07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ void CBasePlayer::WaterMove()

// Account for god mode, the unkillable flag, potential damage mitigation
// and gaining health from drowning to avoid counting damage not actually taken.
const float drownDamageTaken = std::min(0.f, std::floor(oldHealth - pev->health));
const float drownDamageTaken = std::max(0.f, std::floor(oldHealth - pev->health));

m_idrowndmg += drownDamageTaken;
}
Expand Down

0 comments on commit ef8c07d

Please sign in to comment.