summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-29 15:12:40 +0000
committertron <tron@openttd.org>2005-01-29 15:12:40 +0000
commit38587b60f731ba36bf4c4dc2d9fc2ea9ce41ee0d (patch)
treee38584a427c9b3f39a3b8dc39ada303239edb4fa /station_cmd.c
parente5b3e6bbdaddf0d83ee2a53189aeb7881d589467 (diff)
downloadopenttd-38587b60f731ba36bf4c4dc2d9fc2ea9ce41ee0d.tar.xz
(svn r1718) Use the enum TileType as parameter/return type for [GS]etTileType() instead of plain int.
This makes it necessary to rename TileType() to GetTileType() because a type and a function may not share the same name.
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index d43468307..ebf77d903 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -436,7 +436,7 @@ void GetProductionAroundTiles(uint *produced, uint tile, int w, int h, int rad)
if (!(IS_INSIDE_1D(xc, x, w) && IS_INSIDE_1D(yc, y, h))) {
GetProducedCargoProc *gpc;
uint tile = TILE_XY(xc, yc);
- gpc = _tile_type_procs[TileType(tile)]->get_produced_cargo_proc;
+ gpc = _tile_type_procs[GetTileType(tile)]->get_produced_cargo_proc;
if (gpc != NULL) {
cargos[0] = cargos[1] = 0xFF;
gpc(tile, cargos);