summaryrefslogtreecommitdiff
path: root/industry_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-19 21:49:35 +0000
committertron <tron@openttd.org>2005-07-19 21:49:35 +0000
commit7c694f25537097f380d7215082b42eea51e86815 (patch)
tree02f05ccb111e772991e342a10812e26ae8d1a118 /industry_cmd.c
parent4b1c5202640d5c741ebdda3b3775a337a1c36be8 (diff)
downloadopenttd-7c694f25537097f380d7215082b42eea51e86815.tar.xz
(svn r2643) Get rid of some unnecessary casts
Diffstat (limited to 'industry_cmd.c')
-rw-r--r--industry_cmd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index 066f2d58b..d421617e6 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -948,7 +948,7 @@ static void PlantFarmField(TileIndex tile)
{
uint size_x, size_y;
uint32 r;
- int count;
+ uint count;
int type, type2;
if (_opt.landscape == LT_HILLY) {
@@ -971,8 +971,7 @@ static void PlantFarmField(TileIndex tile)
cur_tile = TILE_MASK(cur_tile);
count += IsBadFarmFieldTile(cur_tile);
END_TILE_LOOP(cur_tile, size_x, size_y, tile)
- if ((uint)(count * 2) >= size_x * size_y)
- return;
+ if (count * 2 >= size_x * size_y) return;
/* determine type of field */
r = Random();