Codechange: replace magic numbers with enumeration

This commit is contained in:
Rubidium
2024-10-22 18:06:22 +02:00
committed by rubidium42
parent 4a4c77ff04
commit ea6aa4653a
2 changed files with 69 additions and 54 deletions

View File

@@ -248,7 +248,7 @@ public:
* they are build or 2 when building the first part automatically
* builds the second part. -1 means the preconditions are not met.
*/
static SQInteger CanBuildConnectedRoadParts(ScriptTile::Slope slope, Array<> &&existing, TileIndex start, TileIndex end);
static SQInteger CanBuildConnectedRoadParts(ScriptTile::Slope slope, Array<TileIndex> &&existing, TileIndex start, TileIndex end);
/**
* Lookup function for building road parts independent of whether the