From 9e70701e5073d1f0721f6ecb7914f6074e509783 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 3 Dec 2018 23:33:53 +0100 Subject: [PATCH] - fixed max. ammo display on AltHud. --- wadsrc/static/zscript/statusbar/alt_hud.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/statusbar/alt_hud.txt b/wadsrc/static/zscript/statusbar/alt_hud.txt index 0ac24c4ec8..6f7a5f8dd1 100644 --- a/wadsrc/static/zscript/statusbar/alt_hud.txt +++ b/wadsrc/static/zscript/statusbar/alt_hud.txt @@ -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;