Codechange: rename and make RailSpriteType a scoped enum

RailTypeSpriteGroup is now renamed to RailSpriteType
This commit is contained in:
Peter Nelson
2026-04-16 21:01:17 +01:00
committed by Peter Nelson
parent 5cef1ca68a
commit 8568f1f7bc
12 changed files with 57 additions and 56 deletions
+1 -1
View File
@@ -2848,7 +2848,7 @@ static void ConDumpRailTypes()
const RailTypeInfo *rti = GetRailTypeInfo(rt);
if (rti->label == 0) continue;
uint32_t grfid = 0;
const GRFFile *grf = rti->grffile[RTSG_GROUND];
const GRFFile *grf = rti->grffile[RailSpriteType::Ground];
if (grf != nullptr) {
grfid = grf->grfid;
grfs.emplace(grfid, grf);