summaryrefslogtreecommitdiffstats
path: root/src/render/Hud.cpp
diff options
context:
space:
mode:
author_AG <gennariarmando@outlook.com>2019-07-11 23:29:59 +0200
committer_AG <gennariarmando@outlook.com>2019-07-11 23:43:37 +0200
commit7ba5f6a13a7bbf4870759ec98c0dbb853813c1af (patch)
tree0429fc00277cfdfe3f298c37472e6a9a1e060419 /src/render/Hud.cpp
parentMerge pull request #130 from Fire-Head/master (diff)
downloadre3-7ba5f6a13a7bbf4870759ec98c0dbb853813c1af.tar
re3-7ba5f6a13a7bbf4870759ec98c0dbb853813c1af.tar.gz
re3-7ba5f6a13a7bbf4870759ec98c0dbb853813c1af.tar.bz2
re3-7ba5f6a13a7bbf4870759ec98c0dbb853813c1af.tar.lz
re3-7ba5f6a13a7bbf4870759ec98c0dbb853813c1af.tar.xz
re3-7ba5f6a13a7bbf4870759ec98c0dbb853813c1af.tar.zst
re3-7ba5f6a13a7bbf4870759ec98c0dbb853813c1af.zip
Diffstat (limited to 'src/render/Hud.cpp')
-rw-r--r--src/render/Hud.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index 81f27153..1db7b07c 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -325,7 +325,7 @@ void CHud::Draw()
else {
Clip = AmmoInClip;
- if (TotalAmmo - AmmoInClip > 9999)
+ if ((TotalAmmo - AmmoInClip) > 9999)
Ammo = 9999;
else
Ammo = TotalAmmo - AmmoInClip;