mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-28 14:44:28 +01:00
Codechange: Use enum class for setting values (#15074)
This commit is contained in:
@@ -94,9 +94,9 @@ uint TimerGameEconomy::days_since_last_month = {};
|
||||
*/
|
||||
/* static */ bool TimerGameEconomy::UsingWallclockUnits(bool newgame)
|
||||
{
|
||||
if (newgame) return (_settings_newgame.economy.timekeeping_units == TKU_WALLCLOCK);
|
||||
if (newgame) return (_settings_newgame.economy.timekeeping_units == TimekeepingUnits::Wallclock);
|
||||
|
||||
return (_settings_game.economy.timekeeping_units == TKU_WALLCLOCK);
|
||||
return (_settings_game.economy.timekeeping_units == TimekeepingUnits::Wallclock);
|
||||
}
|
||||
|
||||
template <>
|
||||
|
||||
Reference in New Issue
Block a user