diff options
author | smatz <smatz@openttd.org> | 2008-02-18 18:35:36 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-02-18 18:35:36 +0000 |
commit | 509b3a324728b01d958cfed9df42985a308b8cf8 (patch) | |
tree | 0f5f41084eb7a273e293180f8bdedd4eb61bc243 /src/road_cmd.cpp | |
parent | c7a8080c3a27f8541f5d3943b0138293c2b068c5 (diff) | |
download | openttd-509b3a324728b01d958cfed9df42985a308b8cf8.tar.xz |
(svn r12179) -Codechange: use GetCrossingRailTrack() and GetCrossingRailAxis() to improve code readability
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 97bb769d8..40d520288 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -1448,7 +1448,7 @@ static void ChangeTileOwner_Road(TileIndex tile, PlayerID old_player, PlayerID n if (IsLevelCrossing(tile)) { if (GetTileOwner(tile) == old_player) { if (new_player == PLAYER_SPECTATOR) { - DoCommand(tile, 0, AxisToTrack(OtherAxis(GetCrossingRoadAxis(tile))), DC_EXEC | DC_BANKRUPT, CMD_REMOVE_SINGLE_RAIL); + DoCommand(tile, 0, GetCrossingRailTrack(tile), DC_EXEC | DC_BANKRUPT, CMD_REMOVE_SINGLE_RAIL); } else { SetTileOwner(tile, new_player); } |