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.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(gameclient): hide health bars on projectiles
Olcay Seygan236babe9d771
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cppindex 1c06ee03c..e8de62aa2 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp@@ -3861,6 +3861,10 @@ void Drawable::drawHealthBar(const IRegion2D* healthBarRegion)if( obj == NULL )return;+ // projectiles (missiles, shells, bombs) are in flight for a moment and their bar is just noise+ if( obj->isKindOf( KINDOF_PROJECTILE ) )+ return;+if( obj->isKindOf( KINDOF_FORCEATTACKABLE ) ){//Currently (Nov 2002), everything that is forceattackable are civ fences, and they all have a