summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-28 19:35:36 +0000
committertron <tron@openttd.org>2005-09-28 19:35:36 +0000
commitce1c72cf6ece7b5aaa0bac1a546efa55bdc851db (patch)
treefabd4f30d2f27b1466d0b8f0c8737b900cf5634c /road_cmd.c
parent6249dd46ad3b1b23ae959f57a0def00cf98dd8ee (diff)
downloadopenttd-ce1c72cf6ece7b5aaa0bac1a546efa55bdc851db.tar.xz
(svn r2995) Replace 0xFF/0xFFFF with CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index aa60867e5..64c8969ee 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -1172,7 +1172,7 @@ static void ChangeTileOwner_Road(TileIndex tile, PlayerID old_player, PlayerID n
// road/rail crossing where the road is owned by the current player?
if (old_player == _m[tile].m3 && IsLevelCrossing(tile)) {
- _m[tile].m3 = (new_player == 0xFF) ? OWNER_NONE : new_player;
+ _m[tile].m3 = (new_player == OWNER_SPECTATOR) ? OWNER_NONE : new_player;
}
if (!IsTileOwner(tile, old_player)) return;