diff options
author | tron <tron@openttd.org> | 2005-07-19 21:49:35 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-19 21:49:35 +0000 |
commit | 7c694f25537097f380d7215082b42eea51e86815 (patch) | |
tree | 02f05ccb111e772991e342a10812e26ae8d1a118 /industry_cmd.c | |
parent | 4b1c5202640d5c741ebdda3b3775a337a1c36be8 (diff) | |
download | openttd-7c694f25537097f380d7215082b42eea51e86815.tar.xz |
(svn r2643) Get rid of some unnecessary casts
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 5 |
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(); |