Skip to content

Commit

Permalink
- fixed max. ammo display on AltHud.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Dec 3, 2018
1 parent ae44b93 commit 9e70701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/statusbar/alt_hud.txt
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ class AltHud ui
let inv = GetDefaultByType(type);

let AltIcon = inv.AltHUDIcon;
int maxammo = inv.MaxAmount;
int maxammo = ammoitem? ammoitem.MaxAmount : inv.MaxAmount;

let icon = !AltIcon.isNull()? AltIcon : inv.Icon;
if (!icon.isValid()) continue;
Expand Down

0 comments on commit 9e70701

Please sign in to comment.