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
commit8ee8d1b964f523df5e8264828bf17fb4f8c17dee (patch)
tree1d841ecd272ea4bb508f03002e59308992257cbf /src/town.h
parent55d8f7ed724b8916ec3c953aded671076ceaa3e2 (diff)
downloadopenttd-8ee8d1b964f523df5e8264828bf17fb4f8c17dee.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 */