mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
Codechange: Make Foundation a scoped enum. (#15676)
This commit is contained in:
+1
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user