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.

fix(gameclient): no charge bar over a silo whose missile is silenced

Olcay Seygan7864185462dc
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
index d5d5d773a..92dfa7180 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
@@ -4518,7 +4518,9 @@ void Drawable::drawHealthBar(const IRegion2D* healthBarRegion)
if( sp == NULL || sp->isReady() )
continue;
const SpecialPowerTemplate *tmpl = sp->getSpecialPowerTemplate();
- if( tmpl == NULL || !tmpl->hasPublicTimer() )
+ // a silo whose missile can never fire charges towards nothing
+ if( tmpl == NULL || !tmpl->hasPublicTimer()
+ || SuperweaponMissileSilencedInMatch( tmpl->getSpecialPowerType() ) )
continue;
ScienceType needed = sp->getRequiredScience();