Codechange: make GameMode a scoped enum

This commit is contained in:
Rubidium
2026-05-30 23:20:20 +02:00
committed by rubidium42
parent 4b44d0a376
commit 2ff631caa2
87 changed files with 360 additions and 351 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ void TimeoutTimer<TimerGameCalendar>::Elapsed(TimerGameCalendar::TElapsed trigge
template <>
bool TimerManager<TimerGameCalendar>::Elapsed(TimerGameCalendar::TElapsed)
{
if (_game_mode == GM_MENU) return false;
if (_game_mode == GameMode::Menu) return false;
/* If calendar day progress is frozen, don't try to advance time. */
if (_settings_game.economy.minutes_per_calendar_year == CalendarTime::FROZEN_MINUTES_PER_YEAR) return false;
+1 -1
View File
@@ -121,7 +121,7 @@ void TimeoutTimer<TimerGameEconomy>::Elapsed(TimerGameEconomy::TElapsed trigger)
template <>
bool TimerManager<TimerGameEconomy>::Elapsed(TimerGameEconomy::TElapsed)
{
if (_game_mode == GM_MENU) return false;
if (_game_mode == GameMode::Menu) return false;
TimerGameEconomy::date_fract++;
if (TimerGameEconomy::date_fract < Ticks::DAY_TICKS) return true;