branch | noai |
changeset 9732 | f8eb3e208514 |
parent 9724 | b39bc69bb2f2 |
child 9837 | c9ec4f82e0d0 |
--- a/src/order_gui.cpp Thu Feb 21 22:34:54 2008 +0000 +++ b/src/order_gui.cpp Fri Feb 22 00:25:54 2008 +0000 @@ -281,7 +281,7 @@ break; case MP_ROAD: - if (GetRoadTileType(tile) == ROAD_TILE_DEPOT && v->type == VEH_ROAD && IsTileOwner(tile, _local_player)) { + if (IsRoadDepot(tile) && v->type == VEH_ROAD && IsTileOwner(tile, _local_player)) { order.type = OT_GOTO_DEPOT; order.flags = OFB_PART_OF_ORDERS; order.dest = GetDepotByTile(tile)->index;