(svn r2643) Get rid of some unnecessary casts

This commit is contained in:
tron
2005-07-19 21:49:35 +00:00
parent cea98113b7
commit 7269771544
9 changed files with 20 additions and 21 deletions

View File

@@ -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();