Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

feat(gameclient): show empty container pips too

Olcay Seyganfad4d0e605e7
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
index 5e0aca777..41c4b5098 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
@@ -2954,9 +2954,7 @@ void Drawable::drawContained( const IRegion2D *healthBarRegion )
if (!container->getContainerPipsToShow(numTotal, numFull))
return;
- // if empty, don't show nothin'
- if (numFull == 0)
- return;
+ // empty containers still show their (empty) pips
Int numInfantry = 0;
const ContainedItemsList* contained = container->getContainedItemsList();