Codechange: Make Foundation a scoped enum. (#15676)

This commit is contained in:
Cyprian Klimaszewski
2026-06-06 18:51:53 +01:00
committed by GitHub
parent e41d4a0243
commit 549f357a19
15 changed files with 99 additions and 99 deletions
+1 -1
View File
@@ -443,7 +443,7 @@ CommandCost CmdBuildObjectArea(DoCommandFlags flags, TileIndex tile, TileIndex s
static Foundation GetFoundation_Object(TileIndex tile, Slope tileh)
{
const ObjectSpec *spec = ObjectSpec::Get(GetObjectType(tile));
return spec->IsEnabled() && spec->flags.Test(ObjectFlag::HasNoFoundation) ? FOUNDATION_NONE : FlatteningFoundation(tileh);
return spec->IsEnabled() && spec->flags.Test(ObjectFlag::HasNoFoundation) ? Foundation::None : FlatteningFoundation(tileh);
}
/** @copydoc DrawTileProc */