mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-15 15:19:52 +00:00
Codechange: rename Currencies to Currency
This commit is contained in:
+2
-2
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user