mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
- don't print negative ammo numbers on the Duke HUD.
This commit is contained in:
parent
29c4c77e55
commit
8735e24d99
1 changed files with 6 additions and 4 deletions
|
@ -337,16 +337,18 @@ class DukeStatusBar : DukeCommonStatusBar
|
|||
String format;
|
||||
bool parsedDivisor = false;
|
||||
|
||||
num1 = max(num1, 0);
|
||||
num2 = max(num2, 0);
|
||||
if (numdigits == 2)
|
||||
{
|
||||
if (num1 > 99) num1 = 99;
|
||||
if (num2 > 99) num2 = 99;
|
||||
num1 = min(num1, 99);
|
||||
num2 = min(num2, 99);
|
||||
format = String.Format("%2d/%d", num1, num2);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num1 > 999) num1 = 999;
|
||||
if (num2 > 999) num2 = 999;
|
||||
num1 = min(num1, 999);
|
||||
num2 = min(num2, 999);
|
||||
format = String.Format("%3d/%d", num1, num2);
|
||||
}
|
||||
y--;
|
||||
|
|
Loading…
Reference in a new issue