summaryrefslogtreecommitdiff
path: root/newgrf_station.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-07 12:58:45 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-07 12:58:45 +0000
commit5c3887cdb4bf14a1033f843da06b3ddd5579569d (patch)
tree659e25219492c9309c4a58908a4d9e953314ee67 /newgrf_station.h
parent8bd664f81f3664ee4ce13cfa547f113a34eccbcc (diff)
downloadopenttd-5c3887cdb4bf14a1033f843da06b3ddd5579569d.tar.xz
(svn r4772) - Newstations: when allocating a custom station (via action 0x03) check if the station has already been allocated. (Fixes duplicate waypoints in newstatsw in non-temperate climate)
Diffstat (limited to 'newgrf_station.h')
-rw-r--r--newgrf_station.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/newgrf_station.h b/newgrf_station.h
index 8e01c4923..b7ec6063e 100644
--- a/newgrf_station.h
+++ b/newgrf_station.h
@@ -21,6 +21,8 @@ typedef struct StationSpec {
uint32 grfid; ///< ID of GRF file station belongs to.
int localidx; ///< Index within GRF file of station.
+ bool allocated; ///< Flag whether this station has been added to a station class list
+
StationClassID sclass; ///< The class to which this spec belongs.
StringID name; ///< Name of this station.