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): smaller rank insignia

Olcay Seyganfa22d0d44228
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
index a85817146..40c6dd2c1 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
@@ -327,10 +327,12 @@ static RankInsignia s_rankInsignia[VETERANCY_SIDE_COUNT];
s_veterancyImage[2] = TheMappedImageCollection->findImageByName("SCVeter2");
s_veterancyImage[3] = TheMappedImageCollection->findImageByName("SCVeter3");
// America stacks gold bars and GLA lays out skulls, both the fork's own art, and China the score
- // screen's gold star. A side left out here keeps EA's chevrons.
- const RankInsignia america = { TheMappedImageCollection->findImageByName("ReforgedRankBar"), 16, 8, 7, FALSE };
- const RankInsignia china = { TheMappedImageCollection->findImageByName("Star-Gold"), 12, 12, 10, TRUE };
- const RankInsignia gla = { TheMappedImageCollection->findImageByName("ReforgedRankSkull"), 13, 13, 11, TRUE };
+ // screen's gold star. A side left out here keeps EA's chevrons. Each mark is about as big as a chevron:
+ // the textures carry a transparent margin, so the bar's 12x6 draws a bar about 10x5 and the star's
+ // and skull's 9 draw a mark about 8 across.
+ const RankInsignia america = { TheMappedImageCollection->findImageByName("ReforgedRankBar"), 12, 6, 5, FALSE };
+ const RankInsignia china = { TheMappedImageCollection->findImageByName("Star-Gold"), 9, 9, 7, TRUE };
+ const RankInsignia gla = { TheMappedImageCollection->findImageByName("ReforgedRankSkull"), 9, 9, 8, TRUE };
s_rankInsignia[VETERANCY_SIDE_AMERICA] = america;
s_rankInsignia[VETERANCY_SIDE_CHINA] = china;
s_rankInsignia[VETERANCY_SIDE_GLA] = gla;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
index dff8ccfe1..dea349f2e 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
@@ -10163,9 +10163,9 @@ void InGameUI::updateAndDrawWorldAnimations( void )
const Real WORLD_ANIM_ZOOM_REFERENCE = 1.3f;
Real zoomScale = WORLD_ANIM_ZOOM_REFERENCE / TheTacticalView->getZoom();
- // a rank gained floats up as the side's own marks, twice their health bar size, centred where
- // the chevron would have been
- const Real RANK_GAIN_SCALE = 2.0f;
+ // a rank gained floats up as the side's own marks, half again their health bar size, centred
+ // where the chevron would have been
+ const Real RANK_GAIN_SCALE = 1.5f;
if( wad->m_rankOf && Drawable::drawRankInsignia( wad->m_rankOf, wad->m_rankLevel, screen.x, screen.y - REAL_TO_INT( height * zoomScale / 2 ),
TRUE, RANK_GAIN_SCALE * zoomScale, GameMakeColor( 255, 255, 255, REAL_TO_INT( 255 * alpha ) ) ) )
{