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(gameengine): no passenger pips on planes you cannot select
Olcay Seygan0fc27fb12c31
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9b1bafc3c..089b49129 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1236,6 +1236,7 @@ A third pass went through the generals' powers, promotions and unit abilities.- Bridges no longer float a health bar over the middle of the river. There was never anything under it: the span is part of the terrain, and the bar belonged to an invisible marker standing in the water.- The bar is part of the unit now: click it and you select whoever it belongs to. Zoomed out, an infantryman is a few pixels of helmet under a bar that is far easier to hit, and a unit half behind a building still has its bar in the clear. It only answers clicks that would have missed everything anyway, so it never takes a click away from the unit you were actually pointing at, and right-clicking bare ground under a bar still orders a move. And it stands down the moment you have something selected: with a force in hand your clicks are aimed at the ground, and a bar hanging over that ground used to cost you the whole selection and hand you back a single passer-by.- The city itself stops wearing them too. A building nobody owns shows a bar only if there is something to do about it - troops can go inside, or it can be taken. A row of houses does not, and neither does the concrete apron each of them stands on, which is a separate two-thousand-point object that was drawing a second bar down at street level.+- A plane that only delivers, the Supply Drop Zone's cargo plane or a paradrop, no longer trails a row of empty passenger boxes. It is a hundred-seat transport nobody can order to unload, and with some game data it drew all hundred boxes in a line across the screen beside its health bar. A transport you cannot select shows no boxes now; your Chinook and your Battle Bus keep theirs.## Twenty-two-year-old bugs, found by testingdiff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cppindex 5b73be3be..188cb7843 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp@@ -3709,6 +3709,15 @@ void Drawable::drawContained( const IRegion2D *healthBarRegion )!(obj->isKindOf( KINDOF_STRUCTURE ) && container->isGarrisonable()))return;+ //+ // a unit nobody can select carries a load nobody can unload: the plane a Supply Drop Zone or a+ // paradrop sends over is a 100 slot transport, and it drew a row of 100 empty boxes across the+ // screen whenever the data left it out of IGNORED_IN_GUI (drawIconUI's bail). Buildings are+ // exempt, since a civilian house holds a garrison without being selectable.+ //+ if (!obj->isKindOf( KINDOF_STRUCTURE ) && !obj->isKindOf( KINDOF_SELECTABLE ))+ return;+Int numTotal;Int numFull;if (!container->getContainerPipsToShow(numTotal, numFull))