diff options
author | belugas <belugas@openttd.org> | 2007-05-31 15:40:36 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-05-31 15:40:36 +0000 |
commit | f8da1b6e1a0216315b1e84fe54a94779dd288754 (patch) | |
tree | 082f8e8242493f956b635dfb21392821d27de0e2 /src/industry.h | |
parent | 253aa1b0b03aed312581de35d7e35bc17b96190f (diff) | |
download | openttd-f8da1b6e1a0216315b1e84fe54a94779dd288754.tar.xz |
(svn r10001) -Codechange: Add support for removing dynamically allocated newgrf data
Diffstat (limited to 'src/industry.h')
-rw-r--r-- | src/industry.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/industry.h b/src/industry.h index df29a7189..ff5e563b0 100644 --- a/src/industry.h +++ b/src/industry.h @@ -22,6 +22,11 @@ enum { INVALID_INDUSTRYTILE = NUM_INDUSTRYTILES, ///< one above amount is considered invalid }; +enum { + CLEAN_RANDOMSOUNDS, ///< Free the dynamically allocated sounds table + CLEAN_TILELSAYOUT, ///< Free the dynamically allocated tile layout structure +}; + enum IndustryLifeType { INDUSTRYLIFE_NOT_CLOSABLE, ///< Industry can never close INDUSTRYLIFE_PRODUCTION, ///< Industry can close and change of production @@ -135,6 +140,7 @@ struct IndustrySpec { const uint8 *random_sounds; ///< array of random sounds. /* Newgrf data */ uint16 callback_flags; ///< Flags telling which grf callback is set + uint8 cleanup_flag; ///< flags indicating which data should be freed upon cleaning up bool enabled; ///< entity still avaible (by default true).newgrf can disable it, though struct GRFFileProps grf_prop; ///< properties related the the grf file }; |