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): ring superweapon cells in the owner's colour, 16 colours

Olcay Seygan45a34a089a93
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 83ee07494..a063fa98c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,11 +29,12 @@ found and fixed, EA's own, not port damage.**
- The superweapon countdowns stand where they do in a player's game while you watch, in their tray. The observer's bar named no tray for them, so they used to sit bare and higher up.
- The card that rises when you point at a build button is drawn in your side's own art now, with the price and the build time beside the name behind a coin and a clock. Under them one row of icons says what you are buying: health, armour class, damage, damage a second, range and speed for a unit, health, armour and the power it adds or draws for a building. The six lines of figures that used to pad out the description are gone, and so is the "Power Required" line EA wrote into every building's text, in every language. The small tooltip beside the pointer sits in a framed well of the same art in a match and of the watcher's graphite in the menus.
- The army screen, the lobby and the score screen wear our own emblems. Every army has a card of its own on the army screen, the generals included, where EA's faces and logos used to be, and the player card shows the same one. Turkiye stops borrowing America's logo there and in the lobby's game list. On the score screen each player's row starts with his army's emblem, and your own army's card stands faint behind the table.
+- Eight new player colours after the original eight: Teal, Lime, Navy, Magenta, Brown, Lavender, Coral and Olive, for players and AI in skirmish, LAN and online. They replace Crimson, Azure and Salmon.
## Your queue in pictures again
- What your base is building stands over the radar as pictures again, not lines of text: one row of four, no wider than the radar's box, the next to arrive on the left, together in one steel tray hard against the left edge of the screen, built like the tray that holds the general's powers, each picture in its cell with the coloured edge a power button wears. The seconds left sit in its corner on a dark plate, an x4 marks four of the same thing queued back to back, and a dark sweep comes off the picture as it builds. Past four, a tag sticking up from the tray says how many more are coming. Click one and the camera goes to the building making it; right-click it, or click with Ctrl held, and the newest of it comes off that building's queue, the picture turning red under Ctrl first so you see what you are about to cancel.
-- Superweapon countdowns in the top right are pictures too, yours first and then everyone else's, each soonest first, six to a row and two rows at most in a tray of their own against the right edge of the screen, a little under the info strip, with a tag hanging below it for the rest. A line under each one is its owner's colour, a dark sweep shows how far the charge has come, and once one is charged that line's colour rises up over the picture like light off a lamp, brightest at the line, breathing slowly so a ready superweapon reads at a glance. Clicking one of your own takes the camera to it.
+- Superweapon countdowns in the top right are pictures too, yours first and then everyone else's, each soonest first, six to a row and two rows at most in a tray of their own against the right edge of the screen, a little under the info strip, with a tag hanging below it for the rest. A thick border in its owner's colour runs round all four sides of each one, edged in light under a dark colour and in black under a bright one, so a navy or olive player stands out from the tray as clearly as a yellow one. A dark sweep shows how far the charge has come, and once one is charged its owner's colour rises up over the picture like light off a lamp, brightest at the foot, breathing slowly so a ready superweapon reads at a glance. Clicking one of your own takes the camera to it.
## EA's four ranks are back
diff --git a/GeneralsMD/Code/Data/French/Generals.str b/GeneralsMD/Code/Data/French/Generals.str
index 56fce1cf6..d55fe9a5b 100644
--- a/GeneralsMD/Code/Data/French/Generals.str
+++ b/GeneralsMD/Code/Data/French/Generals.str
@@ -485,26 +485,38 @@ Color:Pink
"Rose"
END
-Color:Crimson
-"Cramoisi"
+Color:Teal
+"Sarcelle"
END
-Color:Azure
-"Azur"
+Color:Lime
+"Citron vert"
END
-Color:Salmon
-"Saumon"
+Color:Navy
+"Bleu marine"
END
-Color:Teal
-"Sarcelle"
+Color:Magenta
+"Magenta"
+END
+
+Color:Brown
+"Marron"
END
Color:Lavender
"Lavande"
END
+Color:Coral
+"Corail"
+END
+
+Color:Olive
+"Olive"
+END
+
MSG:Testing
"Mary had a little lamb, it's fleece as white as snow."
END
diff --git a/GeneralsMD/Code/Data/German/Generals.str b/GeneralsMD/Code/Data/German/Generals.str
index 9ea032c3c..fae9bb1c5 100644
--- a/GeneralsMD/Code/Data/German/Generals.str
+++ b/GeneralsMD/Code/Data/German/Generals.str
@@ -441,26 +441,38 @@ Color:Pink
"Rosa"
END
-Color:Crimson
-"Karmesin"
+Color:Teal
+"Petrol"
END
-Color:Azure
-"Azur"
+Color:Lime
+"Limette"
END
-Color:Salmon
-"Lachs"
+Color:Navy
+"Marineblau"
END
-Color:Teal
-"Petrol"
+Color:Magenta
+"Magenta"
+END
+
+Color:Brown
+"Braun"
END
Color:Lavender
"Lavendel"
END
+Color:Coral
+"Koralle"
+END
+
+Color:Olive
+"Oliv"
+END
+
GUI:ShowBehindBuildings
"Wärmesignatur hinter Gebäuden AN"
END
diff --git a/GeneralsMD/Code/Data/INI/MultiplayerReforged.ini b/GeneralsMD/Code/Data/INI/MultiplayerReforged.ini
index 4ad92a636..7b479de14 100644
--- a/GeneralsMD/Code/Data/INI/MultiplayerReforged.ini
+++ b/GeneralsMD/Code/Data/INI/MultiplayerReforged.ini
@@ -4,32 +4,53 @@
;
; This file lands in the multiplayer checksum.
-MultiplayerColor ColorCrimson
- RGBColor = R:165 G:15 B:45
- RGBNightColor = R:205 G:45 B:80
- TooltipName = Color:Crimson
+; Night colours follow EA's pairing: a colour bright enough to read on a night map keeps its day
+; value, a dark one (EA's Purple) is lifted so it does not sink into the dark.
+
+MultiplayerColor ColorTeal
+ RGBColor = R:0 G:140 B:130
+ RGBNightColor = R:0 G:180 B:165
+ TooltipName = Color:Teal
End
-MultiplayerColor ColorAzure
- RGBColor = R:0 G:165 B:255
- RGBNightColor = R:0 G:165 B:255
- TooltipName = Color:Azure
+MultiplayerColor ColorLime
+ RGBColor = R:166 G:217 B:0
+ RGBNightColor = R:166 G:217 B:0
+ TooltipName = Color:Lime
End
-MultiplayerColor ColorSalmon
- RGBColor = R:240 G:120 B:135
- RGBNightColor = R:240 G:120 B:135
- TooltipName = Color:Salmon
+MultiplayerColor ColorNavy
+ RGBColor = R:37 G:59 B:155
+ RGBNightColor = R:70 G:100 B:225
+ TooltipName = Color:Navy
End
-MultiplayerColor ColorTeal
- RGBColor = R:0 G:175 B:140
- RGBNightColor = R:0 G:175 B:140
- TooltipName = Color:Teal
+MultiplayerColor ColorMagenta
+ RGBColor = R:201 G:0 B:120
+ RGBNightColor = R:240 G:30 B:160
+ TooltipName = Color:Magenta
+End
+
+MultiplayerColor ColorBrown
+ RGBColor = R:164 G:90 B:42
+ RGBNightColor = R:200 G:120 B:65
+ TooltipName = Color:Brown
End
MultiplayerColor ColorLavender
- RGBColor = R:165 G:165 B:255
- RGBNightColor = R:165 G:165 B:255
+ RGBColor = R:165 G:139 B:255
+ RGBNightColor = R:165 G:139 B:255
TooltipName = Color:Lavender
End
+
+MultiplayerColor ColorCoral
+ RGBColor = R:240 G:90 B:69
+ RGBNightColor = R:240 G:90 B:69
+ TooltipName = Color:Coral
+End
+
+MultiplayerColor ColorOlive
+ RGBColor = R:120 G:140 B:0
+ RGBNightColor = R:160 G:180 B:20
+ TooltipName = Color:Olive
+End
diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.str
index caa3c4d36..8fff65250 100644
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@ -3596,26 +3596,38 @@ GUI:FactionPickSideNameHint
END
// the fork's player colours (MultiplayerReforged.ini); EA's eight are in the CSF
-Color:Crimson
-"Crimson"
+Color:Teal
+"Teal"
END
-Color:Azure
-"Azure"
+Color:Lime
+"Lime"
END
-Color:Salmon
-"Salmon"
+Color:Navy
+"Navy"
END
-Color:Teal
-"Teal"
+Color:Magenta
+"Magenta"
+END
+
+Color:Brown
+"Brown"
END
Color:Lavender
"Lavender"
END
+Color:Coral
+"Coral"
+END
+
+Color:Olive
+"Olive"
+END
+
// the LAN lobby's error box when the system bound the socket on another adapter; the first %ls is the
// LAN IP chosen in Options, the second the address the system bound instead
GUI:SocketRedirected
diff --git a/GeneralsMD/Code/Data/Russian/Generals.str b/GeneralsMD/Code/Data/Russian/Generals.str
index 60ab3720e..10dd04705 100644
--- a/GeneralsMD/Code/Data/Russian/Generals.str
+++ b/GeneralsMD/Code/Data/Russian/Generals.str
@@ -489,26 +489,38 @@ Color:Pink
"Розовый"
END
-Color:Crimson
-"Багровый"
+Color:Teal
+"Бирюзовый"
END
-Color:Azure
-"Лазурный"
+Color:Lime
+"Лаймовый"
END
-Color:Salmon
-"Лососевый"
+Color:Navy
+"Тёмно-синий"
END
-Color:Teal
-"Бирюзовый"
+Color:Magenta
+"Пурпурный"
+END
+
+Color:Brown
+"Коричневый"
END
Color:Lavender
"Лавандовый"
END
+Color:Coral
+"Коралловый"
+END
+
+Color:Olive
+"Оливковый"
+END
+
MSG:Testing
"Mary had a little lamb, it's fleece as white as snow"
END
diff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.str
index c09cbbead..1c9092202 100644
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@ -489,26 +489,38 @@ Color:Pink
"Pembe"
END
-Color:Crimson
-"Kızıl"
+Color:Teal
+"Turkuaz"
END
-Color:Azure
-"Gök Mavisi"
+Color:Lime
+"Limon Yeşili"
END
-Color:Salmon
-"Somon"
+Color:Navy
+"Lacivert"
END
-Color:Teal
-"Turkuaz"
+Color:Magenta
+"Fuşya"
+END
+
+Color:Brown
+"Kahverengi"
END
Color:Lavender
"Lavanta"
END
+Color:Coral
+"Mercan"
+END
+
+Color:Olive
+"Zeytin Yeşili"
+END
+
GUI:ShowBehindBuildings
"Binaların arkasındaki ısı izi AÇIK"
END
diff --git a/GeneralsMD/Code/Data/Ukrainian/Generals.str b/GeneralsMD/Code/Data/Ukrainian/Generals.str
index ca0985000..699d60cc5 100644
--- a/GeneralsMD/Code/Data/Ukrainian/Generals.str
+++ b/GeneralsMD/Code/Data/Ukrainian/Generals.str
@@ -489,26 +489,38 @@ Color:Pink
"Рожевий"
END
-Color:Crimson
-"Багряний"
+Color:Teal
+"Бірюзовий"
END
-Color:Azure
-"Лазурний"
+Color:Lime
+"Лаймовий"
END
-Color:Salmon
-"Лососевий"
+Color:Navy
+"Темно-синій"
END
-Color:Teal
-"Бірюзовий"
+Color:Magenta
+"Пурпуровий"
+END
+
+Color:Brown
+"Коричневий"
END
Color:Lavender
"Лавандовий"
END
+Color:Coral
+"Кораловий"
+END
+
+Color:Olive
+"Оливковий"
+END
+
MSG:Testing
"Mary had a little lamb, it's fleece as white as snow"
END
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
index 4549a6030..b2774ae41 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
@@ -168,7 +168,6 @@ enum
PRODUCTION_LIST_LIFT = 2, ///< clearance between the queue tray's foot and the radar frame's top
HUD_CELL_CAMEO_W = 39, ///< a production or superweapon cameo: the general's power shortcut's
HUD_CELL_CAMEO_H = 27,
- HUD_CELL_GAP = 2, ///< twice the superweapon owner line's height
HUD_CELL_POINT_SIZE = 7, ///< the seconds and the "xN" written in a cameo
HUD_CELL_TRAY_CELL_W = 80, ///< the general's powers tray's cell piece at 1080, round its
HUD_CELL_TRAY_CELL_H = 70, ///< power button; a cameo's cell keeps the same margins to scale
@@ -426,13 +425,13 @@ static void drawHudTray( const HudTray &tray, const IRegion2D *cells, Int count,
}
//-------------------------------------------------------------------------------------------------
-/** A charged superweapon's light: its owner's colour cast up off the underline over the cameo,
- * strongest at the line and gone by the top, breathing once every HUD_READY_GLOW_PERIOD_MS on the
+/** A charged superweapon's light: its owner's colour cast up off the foot of its ring over the
+ * cameo, strongest at the foot and gone by the top, breathing once every HUD_READY_GLOW_PERIOD_MS on the
* logic clock, so it holds still while the game is paused. The piece, <side>ProHudReadyGlow, is
* grey light on black drawn additively: the vertex colour, the owner's scaled by the breath,
* multiplies it (Render2DClass draws with GRADIENT_MODULATE) and the sum brightens the cameo
* without hiding it. Over it <side>ProHudReadyShimmer, a band of light as tall as the cameo and
- * brightest along its top edge, climbs from the underline to HUD_READY_SHIMMER_RISE of the cameo
+ * brightest along its top edge, climbs from the foot to HUD_READY_SHIMMER_RISE of the cameo
* once a breath and fades as it goes, clipped to the cameo: Tools/hud_command_bar.py shimmer_rise,
* the owner's pick from the round 8 preview. A piece the sheet lacks is left out. */
//-------------------------------------------------------------------------------------------------
@@ -455,7 +454,7 @@ static void drawReadyGlow( const Image *glow, const Image *shimmer, const IRegio
if( shimmer == NULL )
return;
- // the band's top edge stands rise of the cameo up off the underline; below the cameo it is cut
+ // the band's top edge stands rise of the cameo up off the foot; below the cameo it is cut
const Real rise = HUD_READY_SHIMMER_RISE / 100.0f * phase;
const Real fade = (Real)pow( 1.0f - phase, 0.7 );
const Int height = cameo.hi.y - cameo.lo.y;
@@ -588,6 +587,38 @@ static void drawHudCellBorder( const IRegion2D &cameo, Color border )
1, border );
}
+/// a band `width` thick just inside the box lo.x, lo.y to hi.x, hi.y, on all four sides
+static void fillFrame( Int loX, Int loY, Int hiX, Int hiY, Int width, Color color )
+{
+ TheDisplay->drawFillRect( loX, loY, hiX - loX, width, color );
+ TheDisplay->drawFillRect( loX, hiY - width, hiX - loX, width, color );
+ TheDisplay->drawFillRect( loX, loY + width, width, hiY - loY - 2 * width, color );
+ TheDisplay->drawFillRect( hiX - width, loY + width, width, hiY - loY - 2 * width, color );
+}
+
+//-------------------------------------------------------------------------------------------------
+/** Whose a superweapon is, charged or not: a thick ring in its owner's colour on all four sides of
+ * the cameo, from one pixel over the picture's edge out to a keyline at the cell's side edge, light
+ * under a dark colour and dark under a light one, so a navy, an olive or a black owner reads on
+ * every side's tray. At 1080 that is 3 pixels of colour and 1 of keyline, the owner's pick from
+ * round 19 (experiments/hud-sides-modern/superweapon/sw.py, variant A); `margin` is the cell's side
+ * margin, so it keeps its proportion at every HUD Size. The readout stands inside it: its frame is
+ * never under a pixel. */
+//-------------------------------------------------------------------------------------------------
+static void drawOwnerRing( const IRegion2D &cameo, Color owner, Int margin )
+{
+ UnsignedByte r, g, b, a;
+ GameGetColorComponents( owner, &r, &g, &b, &a );
+ const Bool dark = 299 * r + 587 * g + 114 * b < 90 * 1000;
+ const Color keyline = dark ? GameMakeColor( 214, 216, 220, 255 ) : GameMakeColor( 10, 10, 12, 255 );
+ const Int keylineWidth = max( margin / 3, 1 );
+ const Int out = max( margin - keylineWidth, 1 );
+ fillFrame( cameo.lo.x - out - keylineWidth, cameo.lo.y - out - keylineWidth,
+ cameo.hi.x + out + keylineWidth, cameo.hi.y + out + keylineWidth, keylineWidth, keyline );
+ fillFrame( cameo.lo.x - out, cameo.lo.y - out, cameo.hi.x + out, cameo.hi.y + out, out + 1,
+ GameMakeColor( r, g, b, 255 ) );
+}
+
//-------------------------------------------------------------------------------------------------
/** Pointer to show while a structure rides the cursor. Mouse::BUILD_PLACEMENT and
* INVALID_BUILD_PLACEMENT are two names in CursorININames[] that no shipped Mouse.ini ever
@@ -7506,7 +7537,7 @@ void InGameUI::postDraw( void )
if (TheGameLogic->getFrame() > 0 )
{
//
- // The cameos in the top right, everybody's as EA listed them, bare, each underlined in its
+ // The cameos in the top right, everybody's as EA listed them, bare, each ringed in its
// owner's colour. Everything the loop below finds is gathered first
// and drawn at the end of it, the charged ones and then the soonest ready at the right hand
// end, so the one that matters next is always in the same place however many are behind it.
@@ -7514,7 +7545,6 @@ void InGameUI::postDraw( void )
struct ListedSuperweapon
{
const Image *cameo;
- Color border; ///< its power button's, as the tray draws it
Color owner;
Bool ready;
Int seconds;
@@ -7637,7 +7667,6 @@ void InGameUI::postDraw( void )
? owningObject->getID() : INVALID_ID;
const CommandButton *shortcut = powerButton( info->getSpecialPowerTemplate() );
ListedSuperweapon line = { shortcut ? shortcut->getButtonImage() : NULL,
- shortcut ? hudCellBorder( shortcut->getCommandButtonMappedBorderType() ) : GAME_COLOR_UNDEFINED,
clientColor( info->getColor() ), isReady, readySecs, percent, jump };
listed.push_back( line );
if (info->getSpecialPowerTemplate()->isSharedNSync())
@@ -7673,8 +7702,6 @@ void InGameUI::postDraw( void )
const HudCellStyle style = hudCellStyle();
const Int cameoW = style.cameoW;
const Int cameoH = style.cameoH;
- const Int gap = stripPixels( HUD_CELL_GAP );
- const Int underline = max( gap / 2, 1 ); ///< whose it is, in the cell's margin under the border
const Int right = TheDisplay->getWidth();
const Int top = max( hudStripBottom(), TheUIRect().y ) + stripPixels( SUPERWEAPON_TRAY_DROP ) + style.superweapon.footH;
const Bool more = (Int)listed.size() > SUPERWEAPON_LIST_CELLS;
@@ -7701,7 +7728,7 @@ void InGameUI::postDraw( void )
if( listed[ each ].cameo != NULL )
TheDisplay->drawImage( listed[ each ].cameo, place[ each ].lo.x, place[ each ].lo.y,
place[ each ].hi.x, place[ each ].hi.y );
- // charging, the scrim swept off as the charge runs; charged, its owner's light rising off the line
+ // charging, the scrim swept off as the charge runs; charged, its owner's light rising off the foot
for( Int each = 0; each < cameos; each++ )
{
if( !listed[ each ].ready )
@@ -7710,12 +7737,10 @@ void InGameUI::postDraw( void )
else
drawReadyGlow( style.readyGlow, style.readyShimmer, place[ each ], listed[ each ].owner );
}
+ // a ring in its owner's colour says whose it is, charged or not: a tint on the readout's plate
+ // would leave a charged one, which wears no readout, with no owner at all
for( Int each = 0; each < cameos; each++ )
- drawHudCellBorder( place[ each ], listed[ each ].border );
- // an underline in its owner's colour says whose it is, charged or not: a tint on the readout's
- // plate would leave a charged one, which wears no readout, with no owner at all
- for( Int each = 0; each < cameos; each++ )
- TheDisplay->drawFillRect( place[ each ].lo.x, place[ each ].hi.y + 1, cameoW, underline, listed[ each ].owner );
+ drawOwnerRing( place[ each ], listed[ each ].owner, style.marginX );
TheDisplay->endBatch2D();
// a charged one wears no number: zero seconds says nothing the glow does not
diff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cpp
index 1de29925a..8388fd9be 100644
--- a/GeneralsMD/Code/Tests/test_gameengine.cpp
+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp
@@ -1389,9 +1389,9 @@ TEST(fxlist_reforged_ini_parses_and_keeps_its_light)
#include "Common/MultiplayerSettings.h"
-/* A slot, a replay and a preference hold a colour by its place in the list, so the fork's five have
+/* A slot, a replay and a preference hold a colour by its place in the list, so the fork's eight have
to follow EA's eight and leave them as they were. EA's list is in INIZH.big, so it is copied here. */
-TEST(multiplayer_reforged_ini_appends_five_colours_after_eas_eight)
+TEST(multiplayer_reforged_ini_appends_eight_colours_after_eas_eight)
{
static const struct { const char *tooltip; Int r, g, b, nightR, nightG, nightB; } colours[] =
{
@@ -1403,11 +1403,14 @@ TEST(multiplayer_reforged_ini_appends_five_colours_after_eas_eight)
{ "Color:SkyBlue", 50, 215, 230, 50, 215, 230 },
{ "Color:Purple", 150, 0, 200, 223, 0, 156 },
{ "Color:Pink", 255, 150, 255, 255, 130, 248 },
- { "Color:Crimson", 165, 15, 45, 205, 45, 80 },
- { "Color:Azure", 0, 165, 255, 0, 165, 255 },
- { "Color:Salmon", 240, 120, 135, 240, 120, 135 },
- { "Color:Teal", 0, 175, 140, 0, 175, 140 },
- { "Color:Lavender", 165, 165, 255, 165, 165, 255 },
+ { "Color:Teal", 0, 140, 130, 0, 180, 165 },
+ { "Color:Lime", 166, 217, 0, 166, 217, 0 },
+ { "Color:Navy", 37, 59, 155, 70, 100, 225 },
+ { "Color:Magenta", 201, 0, 120, 240, 30, 160 },
+ { "Color:Brown", 164, 90, 42, 200, 120, 65 },
+ { "Color:Lavender", 165, 139, 255, 165, 139, 255 },
+ { "Color:Coral", 240, 90, 69, 240, 90, 69 },
+ { "Color:Olive", 120, 140, 0, 160, 180, 20 },
};
CHECK( bootOnce() );
@@ -1430,9 +1433,9 @@ TEST(multiplayer_reforged_ini_appends_five_colours_after_eas_eight)
CHECK( loadIni( TEST_INI ) );
CHECK_EQ( TheMultiplayerSettings->getNumColors(), 8 );
CHECK( loadIni( MULTIPLAYER_REFORGED_INI ) );
- CHECK_EQ( TheMultiplayerSettings->getNumColors(), 13 );
+ CHECK_EQ( TheMultiplayerSettings->getNumColors(), 16 );
- for( Int i = 0; i < 13 && TheMultiplayerSettings->getNumColors() == 13; ++i )
+ for( Int i = 0; i < 16 && TheMultiplayerSettings->getNumColors() == 16; ++i )
{
MultiplayerColorDefinition *def = TheMultiplayerSettings->getColor( i );
const RGBColor day = def->getRGBValue();
diff --git a/GeneralsMD/Code/Tools/hud_command_bar.py b/GeneralsMD/Code/Tools/hud_command_bar.py
index db6dfeaa8..c35806473 100644
--- a/GeneralsMD/Code/Tools/hud_command_bar.py
+++ b/GeneralsMD/Code/Tools/hud_command_bar.py
@@ -1500,7 +1500,7 @@ def tray_tab(side_name, up=False):
# A charged superweapon's light (InGameUI.cpp drawReadyGlow): stretched over the cameo, its foot on the
-# owner's underline, drawn additively and multiplied by the owner's colour scaled by the breath (0.55 to
+# foot of the owner's ring, drawn additively and multiplied by the owner's colour scaled by the breath (0.55 to
# 1). So it is grey light on black, opaque: white along the bottom row, falling off on a square curve to
# black about 85% of the way up, faint rays rising through it (a few texels wide, unevenly spaced, each
# 20 to 30% brighter or darker) and a faint scanline every third row. Each build seeds its own rays.
@@ -1534,7 +1534,7 @@ def grey_light(v):
def ready_shimmer(build):
"""Variant B's second piece: a band of light, brightest along its top edge and trailing off below it
over 18 rows, the rest black. It is drawn over the glow, additive and in the owner's colour like
- it, its top edge climbing from the underline to 85% of the cameo once a breath and fading as it
+ it, its top edge climbing from the cameo's foot to 85% of the cameo once a breath and fading as it
goes (shimmer_rise), as InGameUI.cpp drawReadyGlow draws it."""
w, h = READY_GLOW
seed, lo, hi = READY_RAYS[build]
@@ -1550,7 +1550,7 @@ def ready_shimmer(build):
def shimmer_rise(phase):
"""Where variant B's band stands at a phase of the breath (0..1): its top edge as a share of the
- cameo's height from the underline, and how bright it is there."""
+ cameo's height from its foot, and how bright it is there."""
return 0.85 * phase, (1 - phase) ** 0.7