(svn r6001) -Feature: when removing a farm, his farmland is removed too (over time) (based on peter1138's patch, FS#82)

To make this to work, in older games farmland is removed on load, and replanted
This commit is contained in:
truelight
2006-08-20 18:44:26 +00:00
parent 5a8687ccc0
commit 0c760998b3
6 changed files with 75 additions and 22 deletions

View File

@@ -8,6 +8,10 @@
typedef byte IndustryGfx;
typedef uint8 IndustryType;
enum {
INVALID_INDUSTRY = 0xFFFF,
};
struct Industry {
TileIndex xy;
byte width; /* swapped order of w/h with town */
@@ -101,6 +105,7 @@ VARDEF bool _industry_sort_dirty;
void DeleteIndustry(Industry *is);
void PlantRandomFarmField(const Industry *i);
enum {
IT_COAL_MINE = 0,