summaryrefslogtreecommitdiff
path: root/src/house.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-10-12 16:34:04 +0000
committerfrosch <frosch@openttd.org>2013-10-12 16:34:04 +0000
commitcfaa9457a6926fb85ae477e29c2df036e2691121 (patch)
tree406e9cb011d9a4102be2f1e7d9983155e7944cf3 /src/house.h
parent6a0439a789fc3a5f8da55493b27d4c9c6c328b1b (diff)
downloadopenttd-cfaa9457a6926fb85ae477e29c2df036e2691121.tar.xz
(svn r25839) -Codechange: Use NUM_HOUSES_PER_GRF instead of NUM_HOUSES to properly distinguish limits per NewGRF and limits of the pool.
-Change: [NewGRF] Lower the limit of house types per NewGRF from 256 to 255 to prevent usage of ID 0xFF in Action3, and thus allowing it to become an extended byte somewhen.
Diffstat (limited to 'src/house.h')
-rw-r--r--src/house.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/house.h b/src/house.h
index b74e13c18..ddc2a448c 100644
--- a/src/house.h
+++ b/src/house.h
@@ -24,9 +24,11 @@
*/
static const byte TOWN_HOUSE_COMPLETED = 3;
+static const HouseID NUM_HOUSES_PER_GRF = 255; ///< Number of supported houses per NewGRF; limited to 255 to allow extending Action3 with an extended byte later on.
+
static const uint HOUSE_NO_CLASS = 0;
-static const HouseID NEW_HOUSE_OFFSET = 110;
-static const HouseID NUM_HOUSES = 512;
+static const HouseID NEW_HOUSE_OFFSET = 110; ///< Offset for new houses.
+static const HouseID NUM_HOUSES = 512; ///< Total number of houses.
static const HouseID INVALID_HOUSE_ID = 0xFFFF;
/**