summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
authorCelestar <celestar@openttd.org>2004-12-08 15:46:13 +0000
committerCelestar <celestar@openttd.org>2004-12-08 15:46:13 +0000
commit5b0743d66bf73a1bbfdd95beca039283091d8d46 (patch)
treeaa862fd953b81bbc7c142d763f82868807933f7e /station.h
parent6fd3fc10e347695b28c8b3d1e0074b5456cd8100 (diff)
downloadopenttd-5b0743d66bf73a1bbfdd95beca039283091d8d46.tar.xz
(svn r979) Allow more realistically sized catchment areas
Diffstat (limited to 'station.h')
-rw-r--r--station.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/station.h b/station.h
index 527148f3b..cd460d961 100644
--- a/station.h
+++ b/station.h
@@ -73,6 +73,19 @@ enum {
HVOT_BUOY = 1 << 6
};
+enum {
+ CA_BUS = 3,
+ CA_TRUCK = 3,
+ CA_AIR_OILPAD = 3,
+ CA_TRAIN = 4,
+ CA_AIR_HELIPORT = 4,
+ CA_AIR_SMALL = 4,
+ CA_AIR_LARGE = 5,
+ CA_DOCK = 5,
+ CA_AIR_METRO = 6,
+ CA_AIR_INTER = 8,
+};
+
void ModifyStationRatingAround(TileIndex tile, byte owner, int amount, uint radius);
TileIndex GetStationTileForVehicle(Vehicle *v, Station *st);
@@ -88,8 +101,8 @@ VARDEF bool _global_station_sort_dirty;
#define FOR_ALL_STATIONS(st) for(st=_stations; st != endof(_stations); st++)
-void GetProductionAroundTiles(uint *produced, uint tile, int w, int h);
-void GetAcceptanceAroundTiles(uint *accepts, uint tile, int w, int h);
+void GetProductionAroundTiles(uint *produced, uint tile, int w, int h, int rad);
+void GetAcceptanceAroundTiles(uint *accepts, uint tile, int w, int h, int rad);
uint GetStationPlatforms(Station *st, uint tile);