diff options
author | smatz <smatz@openttd.org> | 2009-05-11 11:55:41 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-11 11:55:41 +0000 |
commit | e1e6687bfd2e8e41ecafa3e4b9d5ff7d38aebcb6 (patch) | |
tree | 8d588eadde2aed571ec6d103ee296dfdf9791bf7 /src/town.h | |
parent | d9e1de0281152f30a2df04ccad9b6cda4d34f51d (diff) | |
download | openttd-e1e6687bfd2e8e41ecafa3e4b9d5ff7d38aebcb6.tar.xz |
(svn r16277) -Codechange: enumerize values and remove unneeded values used for testing town rating
Diffstat (limited to 'src/town.h')
-rw-r--r-- | src/town.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/town.h b/src/town.h index 384ff9b3a..fe50fd17a 100644 --- a/src/town.h +++ b/src/town.h @@ -258,11 +258,10 @@ void ShowTownViewWindow(TownID town); void ExpandTown(Town *t); Town *CreateRandomTown(uint attempts, TownSize size, bool city, TownLayout layout); -enum { +enum TownRatingCheckType { ROAD_REMOVE = 0, - UNMOVEABLE_REMOVE = 1, TUNNELBRIDGE_REMOVE = 1, - INDUSTRY_REMOVE = 2 + TOWN_RATING_CHECK_TYPE_COUNT, }; /** This is the number of ticks between towns being processed for building new @@ -286,7 +285,7 @@ enum { TOWN_HAS_STADIUM = 2 ///< There can be only one stadium by town. }; -bool CheckforTownRating(DoCommandFlag flags, Town *t, byte type); +bool CheckforTownRating(DoCommandFlag flags, Town *t, TownRatingCheckType type); static inline HouseSpec *GetHouseSpecs(HouseID house_id) { |