summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-25 19:23:09 +0000
committersmatz <smatz@openttd.org>2009-06-25 19:23:09 +0000
commitc30a87758fca7b0203b36b886aaa360f383f9278 (patch)
tree335422881e40cf333948e202c7f474eda030ad43 /src/station_cmd.cpp
parent103bff508bf4ddfc2018a1ee487742b5f6401568 (diff)
downloadopenttd-c30a87758fca7b0203b36b886aaa360f383f9278.tar.xz
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
-Codechange: remove dummy GetAcceptedCargo_*() handlers
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index efe0889fb..761a7543e 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -524,13 +524,7 @@ void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile,
for (int yc = y1; yc != y2; yc++) {
for (int xc = x1; xc != x2; xc++) {
TileIndex tile = TileXY(xc, yc);
-
- if (!IsTileType(tile, MP_STATION)) {
- AcceptedCargo ac;
-
- GetAcceptedCargo(tile, ac);
- for (uint i = 0; i < lengthof(ac); ++i) accepts[i] += ac[i];
- }
+ AddAcceptedCargo(tile, accepts);
}
}
}
@@ -2348,11 +2342,6 @@ static Foundation GetFoundation_Station(TileIndex tile, Slope tileh)
return FlatteningFoundation(tileh);
}
-static void GetAcceptedCargo_Station(TileIndex tile, AcceptedCargo ac)
-{
- /* not used */
-}
-
static void GetTileDesc_Station(TileIndex tile, TileDesc *td)
{
td->owner[0] = GetTileOwner(tile);
@@ -3163,7 +3152,7 @@ extern const TileTypeProcs _tile_type_station_procs = {
DrawTile_Station, // draw_tile_proc
GetSlopeZ_Station, // get_slope_z_proc
ClearTile_Station, // clear_tile_proc
- GetAcceptedCargo_Station, // get_accepted_cargo_proc
+ NULL, // get_accepted_cargo_proc
GetTileDesc_Station, // get_tile_desc_proc
GetTileTrackStatus_Station, // get_tile_track_status_proc
ClickTile_Station, // click_tile_proc