Codechange: use SPECSTR_..._END over _LAST, to prevent + 1 everywhere

This commit is contained in:
Rubidium
2025-01-04 10:52:21 +01:00
committed by rubidium42
parent bfc8ae6c52
commit 65731bb964
6 changed files with 7 additions and 7 deletions

View File

@@ -82,11 +82,11 @@ enum SpecialStrings {
SPECSTR_TOWNNAME_TURKISH,
SPECSTR_TOWNNAME_ITALIAN,
SPECSTR_TOWNNAME_CATALAN,
SPECSTR_TOWNNAME_LAST = SPECSTR_TOWNNAME_CATALAN,
SPECSTR_TOWNNAME_END = SPECSTR_TOWNNAME_CATALAN + 1,
/* special strings for company names on the form "TownName transport". */
SPECSTR_COMPANY_NAME_START = 0x70EA,
SPECSTR_COMPANY_NAME_LAST = SPECSTR_COMPANY_NAME_START + SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START,
SPECSTR_COMPANY_NAME_END = SPECSTR_COMPANY_NAME_START + SPECSTR_TOWNNAME_END - SPECSTR_TOWNNAME_START,
SPECSTR_SILLY_NAME = 0x70E5,
SPECSTR_ANDCO_NAME = 0x70E6,