# HG changeset patch # User belugas # Date 1168878706 0 # Node ID 6f5ae5d8d407ce66303e8eb18505f5896cfd43ff # Parent 9f91cc4e2b172dfb239733716639f726ebef1401 (svn r8145) -Featurette: Allow for Tropic Farm to plant fields after producing cargo, like its counterpart in temperate climate. diff -r 9f91cc4e2b17 -r 6f5ae5d8d407 src/industry_cmd.cpp --- a/src/industry_cmd.cpp Mon Jan 15 14:42:24 2007 +0000 +++ b/src/industry_cmd.cpp Mon Jan 15 16:31:46 2007 +0000 @@ -750,7 +750,7 @@ static bool IsBadFarmFieldTile(TileIndex tile) { switch (GetTileType(tile)) { - case MP_CLEAR: return IsClearGround(tile, CLEAR_FIELDS) || IsClearGround(tile, CLEAR_SNOW); + case MP_CLEAR: return IsClearGround(tile, CLEAR_FIELDS) || IsClearGround(tile, CLEAR_SNOW) || IsClearGround(tile, CLEAR_DESERT); case MP_TREES: return false; default: return true; } @@ -759,7 +759,7 @@ static bool IsBadFarmFieldTile2(TileIndex tile) { switch (GetTileType(tile)) { - case MP_CLEAR: return IsClearGround(tile, CLEAR_SNOW); + case MP_CLEAR: return IsClearGround(tile, CLEAR_SNOW) || IsClearGround(tile, CLEAR_DESERT); case MP_TREES: return false; default: return true; } @@ -960,7 +960,7 @@ i->cargo_waiting[0] = min(0xffff, i->cargo_waiting[0] + i->production_rate[0]); i->cargo_waiting[1] = min(0xffff, i->cargo_waiting[1] + i->production_rate[1]); - if (i->type == IT_FARM) { + if (i->type == IT_FARM || i->type == IT_FARM_2) { MaybePlantFarmField(i); } else if (i->type == IT_LUMBER_MILL && (i->counter & 0x1FF) == 0) { ChopLumberMillTrees(i);