(svn r4130) - CodeChange: Add proper semantics for TownID for such variables instead of using the general uint16-type. We probably need to change GetTown() and IsTownIndex() as well to use TownID.

This commit is contained in:
Darkvater
2006-03-26 22:41:56 +00:00
parent fa86dff4c3
commit 2ba792d644
5 changed files with 7 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ struct Waypoint {
TileIndex xy; ///< Tile of waypoint
uint16 index; ///< Index of waypoint
uint16 town_index; ///< Town associated with the waypoint
TownID town_index; ///< Town associated with the waypoint
byte town_cn; ///< The Nth waypoint for this town (consecutive number)
StringID string; ///< If this is zero (i.e. no custom name), town + town_cn is used for naming