diff options
author | smatz <smatz@openttd.org> | 2009-06-25 19:23:09 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-25 19:23:09 +0000 |
commit | c30a87758fca7b0203b36b886aaa360f383f9278 (patch) | |
tree | 335422881e40cf333948e202c7f474eda030ad43 /src/unmovable_cmd.cpp | |
parent | 103bff508bf4ddfc2018a1ee487742b5f6401568 (diff) | |
download | openttd-c30a87758fca7b0203b36b886aaa360f383f9278.tar.xz |
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
-Codechange: remove dummy GetAcceptedCargo_*() handlers
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r-- | src/unmovable_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index 4436aab06..534778437 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -291,7 +291,7 @@ static CommandCost ClearTile_Unmovable(TileIndex tile, DoCommandFlag flags) return CommandCost(); } -static void GetAcceptedCargo_Unmovable(TileIndex tile, AcceptedCargo ac) +static void AddAcceptedCargo_Unmovable(TileIndex tile, AcceptedCargo ac) { if (!IsCompanyHQ(tile)) return; @@ -303,13 +303,13 @@ static void GetAcceptedCargo_Unmovable(TileIndex tile, AcceptedCargo ac) /* Top town building generates 10, so to make HQ interesting, the top * type makes 20. */ - ac[CT_PASSENGERS] = max(1U, level); + ac[CT_PASSENGERS] += max(1U, level); /* Top town building generates 4, HQ can make up to 8. The * proportion passengers:mail is different because such a huge * commercial building generates unusually high amount of mail * correspondence per physical visitor. */ - ac[CT_MAIL] = max(1U, level / 2); + ac[CT_MAIL] += max(1U, level / 2); } @@ -501,7 +501,7 @@ extern const TileTypeProcs _tile_type_unmovable_procs = { DrawTile_Unmovable, // draw_tile_proc GetSlopeZ_Unmovable, // get_slope_z_proc ClearTile_Unmovable, // clear_tile_proc - GetAcceptedCargo_Unmovable, // get_accepted_cargo_proc + AddAcceptedCargo_Unmovable, // add_accepted_cargo_proc GetTileDesc_Unmovable, // get_tile_desc_proc GetTileTrackStatus_Unmovable, // get_tile_track_status_proc ClickTile_Unmovable, // click_tile_proc |