summaryrefslogtreecommitdiff
path: root/industry_cmd.c
diff options
context:
space:
mode:
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();