From fe6dadad7bca7a772fe5626c59b44b243324e6f5 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 20 Apr 2006 17:04:08 +0000 Subject: (svn r4484) - Newstations: Use StringIDs instead of char*s to reference our custom names. --- newgrf_station.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newgrf_station.h') 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); -- cgit v1.2.3-54-g00ecf