summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-03-20 02:24:14 +0000
committerbelugas <belugas@openttd.org>2007-03-20 02:24:14 +0000
commit4e5567a710b81f2646cb23f6ba73d5353903d544 (patch)
treed1b31c1b0ec3ddd9a491d8e31480d12dc5ac7141 /src/town.h
parentb08c8dcb6a891d7c7530f326ce72b514935ae52e (diff)
downloadopenttd-4e5567a710b81f2646cb23f6ba73d5353903d544.tar.xz
(svn r9366) -Codechange: Unify the different houses acceptances attributes on their cargo counterpart, as well as specifying cargo slot.
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/town.h b/src/town.h
index 3bc81f2b6..e824d3fe6 100644
--- a/src/town.h
+++ b/src/town.h
@@ -155,10 +155,8 @@ struct HouseSpec {
StringID building_name; ///< building name
uint16 remove_rating_decrease; ///< rating decrease if removed
byte mail_generation; ///< mail generation multiplier (tile based, as the acceptances below)
- byte passenger_acceptance; ///< passenger acceptance, given in 1/8th unit, max is 8, as the 3 next properies
- byte mail_acceptance; ///< mail acceptance
- byte goods_acceptance; ///< good acceptance
- byte food_acceptance; ///< food (or fizzy drink) acceptance
+ byte cargo_acceptance[3]; ///< acceptance level for the cargo slots
+ 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)