equal
deleted
inserted
replaced
966 |
966 |
967 ShowRoadVehViewWindow(v); |
967 ShowRoadVehViewWindow(v); |
968 } |
968 } |
969 } break; |
969 } break; |
970 |
970 |
971 case 9: { /* Build new Vehicle */ |
971 case 9: /* Build new Vehicle */ |
972 TileIndex tile; |
972 if (!IsWindowOfPrototype(w, _player_roadveh_widgets)) break; |
973 |
|
974 if (!IsWindowOfPrototype(w, _player_roadveh_widgets)) |
|
975 break; |
|
976 |
|
977 tile = _last_built_road_depot_tile; |
|
978 do { |
|
979 if (IsTileDepotType(tile, TRANSPORT_ROAD) && IsTileOwner(tile, _local_player)) { |
|
980 ShowRoadDepotWindow(tile); |
|
981 ShowBuildRoadVehWindow(tile); |
|
982 return; |
|
983 } |
|
984 |
|
985 tile = TILE_MASK(tile + 1); |
|
986 } while (tile != _last_built_road_depot_tile); |
|
987 |
|
988 ShowBuildRoadVehWindow(0); |
973 ShowBuildRoadVehWindow(0); |
989 } break; |
974 break; |
|
975 |
990 case 10: { |
976 case 10: { |
991 if (!IsWindowOfPrototype(w, _player_roadveh_widgets)) |
977 if (!IsWindowOfPrototype(w, _player_roadveh_widgets)) |
992 break; |
978 break; |
993 |
979 |
994 ShowReplaceVehicleWindow(VEH_Road); |
980 ShowReplaceVehicleWindow(VEH_Road); |