Skip to content

Commit ebe14da

Browse files
authored
fix(options): Fix System Time and Game Time settings not loading and applying correctly (#1349)
1 parent c01d696 commit ebe14da

File tree

2 files changed

+8
-8
lines changed
  • GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus
  • Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus

2 files changed

+8
-8
lines changed

Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,8 +1228,8 @@ static void saveOptions( void )
12281228

12291229
//-------------------------------------------------------------------------------------------------
12301230
// Set System Time Font Size
1231-
val = TheWritableGlobalData->m_systemTimeFontSize; // TheSuperHackers @todo replace with options input when applicable
1232-
if (val)
1231+
val = pref->getSystemTimeFontSize(); // TheSuperHackers @todo replace with options input when applicable
1232+
if (val >= 0)
12331233
{
12341234
AsciiString prefString;
12351235
prefString.format("%d", val);
@@ -1239,8 +1239,8 @@ static void saveOptions( void )
12391239

12401240
//-------------------------------------------------------------------------------------------------
12411241
// Set Game Time Font Size
1242-
val = TheWritableGlobalData->m_gameTimeFontSize; // TheSuperHackers @todo replace with options input when applicable
1243-
if (val)
1242+
val = pref->getGameTimeFontSize(); // TheSuperHackers @todo replace with options input when applicable
1243+
if (val >= 0)
12441244
{
12451245
AsciiString prefString;
12461246
prefString.format("%d", val);

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,8 +1288,8 @@ static void saveOptions( void )
12881288

12891289
//-------------------------------------------------------------------------------------------------
12901290
// Set System Time Font Size
1291-
val = TheWritableGlobalData->m_systemTimeFontSize; // TheSuperHackers @todo replace with options input when applicable
1292-
if (val)
1291+
val = pref->getSystemTimeFontSize(); // TheSuperHackers @todo replace with options input when applicable
1292+
if (val >= 0)
12931293
{
12941294
AsciiString prefString;
12951295
prefString.format("%d", val);
@@ -1299,8 +1299,8 @@ static void saveOptions( void )
12991299

13001300
//-------------------------------------------------------------------------------------------------
13011301
// Set Game Time Font Size
1302-
val = TheWritableGlobalData->m_gameTimeFontSize; // TheSuperHackers @todo replace with options input when applicable
1303-
if (val)
1302+
val = pref->getGameTimeFontSize(); // TheSuperHackers @todo replace with options input when applicable
1303+
if (val >= 0)
13041304
{
13051305
AsciiString prefString;
13061306
prefString.format("%d", val);

0 commit comments

Comments
 (0)