From f099eba2e39bb2c95b4823fe9e2add5dd97ba45a Mon Sep 17 00:00:00 2001 From: Mauller <26652186+Mauller@users.noreply.github.com> Date: Wed, 23 Jul 2025 19:31:29 +0100 Subject: [PATCH] [GEN][ZH] Fixup zero not being considered when saving OSD font sizes --- .../GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp | 8 ++++---- .../GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp b/Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp index d539c14b740..db8a65cd596 100644 --- a/Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp +++ b/Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp @@ -1228,8 +1228,8 @@ static void saveOptions( void ) //------------------------------------------------------------------------------------------------- // Set System Time Font Size - val = TheWritableGlobalData->m_systemTimeFontSize; // TheSuperHackers @todo replace with options input when applicable - if (val) + val = pref->getSystemTimeFontSize(); // TheSuperHackers @todo replace with options input when applicable + if (val >= 0) { AsciiString prefString; prefString.format("%d", val); @@ -1239,8 +1239,8 @@ static void saveOptions( void ) //------------------------------------------------------------------------------------------------- // Set Game Time Font Size - val = TheWritableGlobalData->m_gameTimeFontSize; // TheSuperHackers @todo replace with options input when applicable - if (val) + val = pref->getGameTimeFontSize(); // TheSuperHackers @todo replace with options input when applicable + if (val >= 0) { AsciiString prefString; prefString.format("%d", val); diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp index 9d78c397899..587a261bfcc 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp @@ -1288,8 +1288,8 @@ static void saveOptions( void ) //------------------------------------------------------------------------------------------------- // Set System Time Font Size - val = TheWritableGlobalData->m_systemTimeFontSize; // TheSuperHackers @todo replace with options input when applicable - if (val) + val = pref->getSystemTimeFontSize(); // TheSuperHackers @todo replace with options input when applicable + if (val >= 0) { AsciiString prefString; prefString.format("%d", val); @@ -1299,8 +1299,8 @@ static void saveOptions( void ) //------------------------------------------------------------------------------------------------- // Set Game Time Font Size - val = TheWritableGlobalData->m_gameTimeFontSize; // TheSuperHackers @todo replace with options input when applicable - if (val) + val = pref->getGameTimeFontSize(); // TheSuperHackers @todo replace with options input when applicable + if (val >= 0) { AsciiString prefString; prefString.format("%d", val);