1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as

these are used intermixed often.
This commit is contained in:
Darkvater
2006-10-14 22:22:48 +00:00
parent dad5d5dd72
commit 9732c129c1
8 changed files with 15 additions and 16 deletions

View File

@@ -708,7 +708,7 @@ static int32 DoClearBridge(TileIndex tile, uint32 flags)
if (GetTransportTypeUnderBridge(c) == TRANSPORT_RAIL) {
MakeRailNormal(c, GetTileOwner(c), GetRailBitsUnderBridge(c), GetRailType(c));
} else {
uint town = IsTileOwner(c, OWNER_TOWN) ? ClosestTownFromTile(c, (uint)-1)->index : 0;
TownID town = IsTileOwner(c, OWNER_TOWN) ? ClosestTownFromTile(c, (uint)-1)->index : 0;
MakeRoadNormal(c, GetTileOwner(c), GetRoadBitsUnderBridge(c), town);
}
MarkTileDirtyByTile(c);