summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-20 17:43:13 +0000
committertron <tron@openttd.org>2005-10-20 17:43:13 +0000
commit2b91f55b320256a9653920f0b395879c1012d158 (patch)
tree904818203b322c8fca47da358ab42c2f254d2280 /rail_cmd.c
parent6a5c0fabddadee4a95b075a21856eb8afbf93c57 (diff)
downloadopenttd-2b91f55b320256a9653920f0b395879c1012d158.tar.xz
(svn r3073) int/byte -> EngineID/PlayerID/VehicleID
0/-1 -> INVALID_ENGINE 0x10 -> OWNER_NONE
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 47f70c66f..6e46999e3 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1997,7 +1997,6 @@ static void TileLoop_Track(TileIndex tile)
byte a2;
byte rail;
uint16 m2;
- byte owner;
m2 = GB(_m[tile].m2, 0, 4);
@@ -2037,7 +2036,7 @@ static void TileLoop_Track(TileIndex tile)
} else if (rail == TRACK_BIT_RIGHT) {
a2 = RAIL_GROUND_FENCE_VERT2;
} else {
- owner = GetTileOwner(tile);
+ PlayerID owner = GetTileOwner(tile);
if ( (!(rail&(TRACK_BIT_DIAG2|TRACK_BIT_UPPER|TRACK_BIT_LEFT)) && (rail&TRACK_BIT_DIAG1)) || rail==(TRACK_BIT_LOWER|TRACK_BIT_RIGHT)) {
if (!IsTileType(tile + TileDiffXY(0, -1), MP_RAILWAY) ||