always display XX/YY when in ammo/capacity mode

This commit is contained in:
PurpleHato 2022-09-04 20:39:56 +02:00
parent e11ca62ee1
commit 47c7d3f061

View File

@ -375,14 +375,13 @@ void DrawItemCount(ItemTrackerItem item) {
} else { } else {
currentColor = IM_COL_GREEN; currentColor = IM_COL_GREEN;
} }
} else { }
if (shouldDisplayMax) { if (shouldDisplayMax) {
currentString += "/"; currentString += "/";
maxString = std::to_string(currentAndMax.currentCapacity); maxString = std::to_string(currentAndMax.currentCapacity);
} }
if (currentAndMax.currentAmmo <= 0) { if (currentAndMax.currentAmmo <= 0) {
currentColor = IM_COL_GRAY; currentColor = IM_COL_GRAY;
}
} }
} else { } else {
currentString = std::to_string(currentAndMax.currentCapacity); currentString = std::to_string(currentAndMax.currentCapacity);