diff options
author | rubidium <rubidium@openttd.org> | 2009-02-09 21:20:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-09 21:20:05 +0000 |
commit | d846eef0b68474970d7ffe5f1d667d866ddff7a8 (patch) | |
tree | a4f2317ed234736c522ee05672396684eadbc141 /src/town.h | |
parent | cd0b38d234c7aa9f9fbfa32243e6cd66f308484a (diff) | |
download | openttd-d846eef0b68474970d7ffe5f1d667d866ddff7a8.tar.xz |
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
Diffstat (limited to 'src/town.h')
-rw-r--r-- | src/town.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/town.h b/src/town.h index 9d0240c5d..2aac3bd4e 100644 --- a/src/town.h +++ b/src/town.h @@ -18,6 +18,7 @@ #include "viewport_type.h" #include "economy_type.h" #include "map_type.h" +#include "command_type.h" enum { HOUSE_NO_CLASS = 0, @@ -280,7 +281,7 @@ enum { TOWN_HAS_STADIUM = 2 ///< There can be only one stadium by town. }; -bool CheckforTownRating(uint32 flags, Town *t, byte type); +bool CheckforTownRating(DoCommandFlag flags, Town *t, byte type); static inline HouseSpec *GetHouseSpecs(HouseID house_id) { @@ -352,7 +353,7 @@ void ResetHouses(); void ClearTownHouse(Town *t, TileIndex tile); void UpdateTownMaxPass(Town *t); void UpdateTownRadius(Town *t); -bool CheckIfAuthorityAllowsNewStation(TileIndex tile, uint32 flags); +bool CheckIfAuthorityAllowsNewStation(TileIndex tile, DoCommandFlag flags); Town *ClosestTownFromTile(TileIndex tile, uint threshold); void ChangeTownRating(Town *t, int add, int max); HouseZonesBits GetTownRadiusGroup(const Town *t, TileIndex tile); |