Codechange: rename Currencies to Currency

This commit is contained in:
Rubidium
2026-06-18 18:00:36 +02:00
committed by rubidium42
parent 3efe107a6f
commit bf67ba9a3b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ uint64_t GetMaskOfAllowedCurrencies()
{
uint64_t mask = 0LL;
for (Currencies i : EnumRange(CURRENCY_END)) {
for (Currency i : EnumRange(CURRENCY_END)) {
TimerGameCalendar::Year to_euro = _currency_specs[i].to_euro;
if (to_euro != CF_NOEURO && to_euro != CF_ISEURO && TimerGameCalendar::year >= to_euro) continue;
@@ -161,7 +161,7 @@ static const IntervalTimer<TimerGameCalendar> _check_switch_to_euro({TimerGameCa
*/
void ResetCurrencies(bool preserve_custom)
{
for (Currencies i : EnumRange(CURRENCY_END)) {
for (Currency i : EnumRange(CURRENCY_END)) {
if (preserve_custom && i == CURRENCY_CUSTOM) continue;
_currency_specs[i] = origin_currency_specs[i];
}
+1 -1
View File
@@ -22,7 +22,7 @@ static constexpr TimerGameCalendar::Year MIN_EURO_YEAR{2000}; ///< The earliest
* savegame compatibility and in order to refer to them quickly, especially
* for referencing the custom one.
*/
enum Currencies : uint8_t {
enum Currency : uint8_t {
CURRENCY_GBP, ///< British Pound
CURRENCY_USD, ///< US Dollar
CURRENCY_EUR, ///< Euro