summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-01-09 17:47:05 +0000
committerglx <glx@openttd.org>2008-01-09 17:47:05 +0000
commit785572ea32e11064375e9de0a789f46c73acac75 (patch)
tree1d841ecd272ea4bb508f03002e59308992257cbf /src/town.h
parentd133edd026b031ff45916f33bc2bed525e3c2f0b (diff)
downloadopenttd-785572ea32e11064375e9de0a789f46c73acac75.tar.xz
(svn r11795) -Fix [FS#1616]: take town rating into account when testing if a command can be executed.
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/town.h b/src/town.h
index 118c0ebff..50dbb171e 100644
--- a/src/town.h
+++ b/src/town.h
@@ -106,6 +106,7 @@ struct Town : PoolItem<Town, TownID, &_Town_pool> {
PlayerByte exclusivity; ///< which player has exslusivity
uint8 exclusive_counter; ///< months till the exclusivity expires
int16 ratings[MAX_PLAYERS];
+ int16 test_rating;
/* Maximum amount of passengers and mail that can be transported. */
uint32 max_pass;
@@ -313,5 +314,6 @@ bool CheckIfAuthorityAllows(TileIndex tile);
Town *ClosestTownFromTile(TileIndex tile, uint threshold);
void ChangeTownRating(Town *t, int add, int max);
uint GetTownRadiusGroup(const Town* t, TileIndex tile);
+void SetTownRatingTestMode(bool mode);
#endif /* TOWN_H */