summaryrefslogtreecommitdiff
path: root/industry_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 /industry_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 'industry_cmd.c')
-rw-r--r--industry_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index 9836d16f7..149d7fc68 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -857,7 +857,7 @@ static const byte _plantfarmfield_type[] = {1, 1, 1, 1, 1, 3, 3, 4, 4, 4, 5, 5,
static bool IsBadFarmFieldTile(TileIndex tile)
{
- switch (TileType(tile)) {
+ switch (GetTileType(tile)) {
case MP_CLEAR: {
byte m5 = _map5[tile] & 0x1C;
return m5 == 0xC || m5 == 0x10;
@@ -873,7 +873,7 @@ static bool IsBadFarmFieldTile(TileIndex tile)
static bool IsBadFarmFieldTile2(TileIndex tile)
{
- switch (TileType(tile)) {
+ switch (GetTileType(tile)) {
case MP_CLEAR: {
byte m5 = _map5[tile] & 0x1C;
return m5 == 0x10;