diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-20 17:04:08 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-20 17:04:08 +0000 |
commit | fe6dadad7bca7a772fe5626c59b44b243324e6f5 (patch) | |
tree | 2b85744b60fcd7085bb5bb2052610cd2f8a17edf /newgrf_station.h | |
parent | 9ed8c6d4acea5c41246d3fa54301d4a0cc814985 (diff) | |
download | openttd-fe6dadad7bca7a772fe5626c59b44b243324e6f5.tar.xz |
(svn r4484) - Newstations: Use StringIDs instead of char*s to reference our custom names.
Diffstat (limited to 'newgrf_station.h')
-rw-r--r-- | newgrf_station.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newgrf_station.h b/newgrf_station.h index 2d9123b3b..5f6c630ef 100644 --- a/newgrf_station.h +++ b/newgrf_station.h @@ -22,6 +22,7 @@ typedef struct stationspec { int localidx; ///< Index within GRF file of station. StationClassID sclass; ///< The class to which this spec belongs. + StringID name; ///< Name of this station. /** * Bitmask of number of platforms available for the station. @@ -76,14 +77,13 @@ typedef struct stationspec { */ typedef struct stationclass { uint32 id; ///< ID of this class, e.g. 'DFLT', 'WAYP', etc. - char *name; ///< Name of this class. + StringID name; ///< Name of this class. uint stations; ///< Number of stations in this class. StationSpec **spec; ///< Array of station specifications. } StationClass; void ResetStationClasses(void); StationClassID AllocateStationClass(uint32 class); -void SetStationClassName(StationClassID sclass, const char *name); uint GetNumStationClasses(void); uint GetNumCustomStations(StationClassID sclass); |