From 8ee8d1b964f523df5e8264828bf17fb4f8c17dee Mon Sep 17 00:00:00 2001 From: glx Date: Wed, 9 Jan 2008 17:47:05 +0000 Subject: (svn r11795) -Fix [FS#1616]: take town rating into account when testing if a command can be executed. --- src/town.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/town.h') 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 { 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 */ -- cgit v1.2.3-54-g00ecf