diff options
author | smatz <smatz@openttd.org> | 2009-09-20 17:44:33 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-09-20 17:44:33 +0000 |
commit | 9225b3ba0315bf16322e15b4d71c3b2efc6d93a8 (patch) | |
tree | 0a35e6988310f33c2b662389f8cb65176222ceb7 /src/station_cmd.cpp | |
parent | 2049d60e3460904e167fdd3e653b5e70fa4f0c9f (diff) | |
download | openttd-9225b3ba0315bf16322e15b4d71c3b2efc6d93a8.tar.xz |
(svn r17589) -Codechange: rename town_acc to always_accepted
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 2c4cb14df..5fd0cf822 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -508,12 +508,12 @@ CargoArray GetProductionAroundTiles(TileIndex tile, int w, int h, int rad) * @param w X extent of area * @param h Y extent of area * @param rad Search radius in addition to given area - * @param town_acc bitmask of cargo accepted by houses and headquarters; can be NULL + * @param always_accepted bitmask of cargo accepted by houses and headquarters; can be NULL */ -CargoArray GetAcceptanceAroundTiles(TileIndex tile, int w, int h, int rad, uint32 *town_acc) +CargoArray GetAcceptanceAroundTiles(TileIndex tile, int w, int h, int rad, uint32 *always_accepted) { CargoArray acceptance; - if (town_acc != NULL) *town_acc = 0; + if (always_accepted != NULL) *always_accepted = 0; int x = TileX(tile); int y = TileY(tile); @@ -533,7 +533,7 @@ CargoArray GetAcceptanceAroundTiles(TileIndex tile, int w, int h, int rad, uint3 for (int yc = y1; yc != y2; yc++) { for (int xc = x1; xc != x2; xc++) { TileIndex tile = TileXY(xc, yc); - AddAcceptedCargo(tile, acceptance, town_acc); + AddAcceptedCargo(tile, acceptance, always_accepted); } } @@ -557,7 +557,7 @@ void UpdateStationAcceptance(Station *st, bool show_msg) st->rect.right - st->rect.left + 1, st->rect.bottom - st->rect.top + 1, st->GetCatchmentRadius(), - &st->town_acc + &st->always_accepted ); } |