summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-05-10 16:03:06 +0000
committermaedhros <maedhros@openttd.org>2007-05-10 16:03:06 +0000
commit304075b3890b5fb9b060d007f10e5de66a19fdae (patch)
treefb98ee0f7bcded9ffb061f6e7d4b0448d35332db /src/town.h
parentacf54966812bcd03aa0122a46288ba39ebb0e5cb (diff)
downloadopenttd-304075b3890b5fb9b060d007f10e5de66a19fdae.tar.xz
(svn r9823) -Feature: Add support for house property 1F - minimum life span.
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/town.h b/src/town.h
index 0924938c1..53a9258bb 100644
--- a/src/town.h
+++ b/src/town.h
@@ -164,10 +164,10 @@ struct HouseSpec {
CargoID accepts_cargo[3]; ///< 3 input cargo slots
BuildingFlags building_flags; ///< some flags that describe the house (size, stadium etc...)
HouseZones building_availability; ///< where can it be built (climates, zones)
- bool enabled; ///< the house is still avaible (by default, true.newgrf can disable it, though)
+ bool enabled; ///< the house is available to build (true by default, but can be disabled by newgrf)
/* NewHouses properties */
- HouseID substitute_id; ///< which house this one is based on
+ HouseID substitute_id; ///< which original house this one is based on
struct SpriteGroup *spritegroup; ///< pointer to the different sprites of the house
HouseID override; ///< which house this one replaces
uint16 callback_mask; ///< House callback flags
@@ -178,6 +178,7 @@ struct HouseSpec {
byte animation_frames; ///< number of animation frames
byte animation_speed; ///< amount of time between each of those frames
byte processing_time; ///< Periodic refresh multiplier
+ byte minimum_life; ///< The minimum number of years this house will survive before the town rebuilds it
/* grf file related properties*/
uint8 local_id; ///< id defined by the grf file for this house