equal
deleted
inserted
replaced
809 |
809 |
810 tile += (direction == AXIS_X ? TileDiffXY(1, 0) : TileDiffXY(0, 1)); |
810 tile += (direction == AXIS_X ? TileDiffXY(1, 0) : TileDiffXY(0, 1)); |
811 } while (--size); |
811 } while (--size); |
812 } |
812 } |
813 |
813 |
814 static void PlantFarmField(TileIndex tile, uint16 industry) |
814 static void PlantFarmField(TileIndex tile, IndustryID industry) |
815 { |
815 { |
816 uint size_x, size_y; |
816 uint size_x, size_y; |
817 uint32 r; |
817 uint32 r; |
818 uint count; |
818 uint count; |
819 uint counter; |
819 uint counter; |
1402 { |
1402 { |
1403 Industry *i; |
1403 Industry *i; |
1404 |
1404 |
1405 FOR_ALL_INDUSTRIES(i) { |
1405 FOR_ALL_INDUSTRIES(i) { |
1406 if (i->xy == 0) { |
1406 if (i->xy == 0) { |
1407 uint index = i->index; |
1407 IndustryID index = i->index; |
1408 |
1408 |
1409 if (i->index > _total_industries) _total_industries = i->index; |
1409 if (i->index > _total_industries) _total_industries = i->index; |
1410 |
1410 |
1411 memset(i, 0, sizeof(*i)); |
1411 memset(i, 0, sizeof(*i)); |
1412 i->index = index; |
1412 i->index = index; |