diff options
author | belugas <belugas@openttd.org> | 2006-04-27 18:28:56 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-04-27 18:28:56 +0000 |
commit | 187013b6a3962af91479d8837f04b82095b7059f (patch) | |
tree | 87c8ce2455b4248172760e3b393211907edadfd8 /openttd.c | |
parent | 8d54122649ed7d816e91a3a13f2611642a6975d5 (diff) | |
download | openttd-187013b6a3962af91479d8837f04b82095b7059f.tar.xz |
(svn r4593) CodeChange : Renamed spec (when using StationSpec) to statspec.
This is following the same scheme as for IndustrySpec
Diffstat (limited to 'openttd.c')
-rw-r--r-- | openttd.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1342,15 +1342,15 @@ bool AfterLoadGame(void) FOR_ALL_WAYPOINTS(wp) { if (wp->xy != 0 && wp->deleted == 0) { - const StationSpec *spec = NULL; + const StationSpec *statspec = NULL; if (HASBIT(_m[wp->xy].m3, 4)) - spec = GetCustomStation(STAT_CLASS_WAYP, _m[wp->xy].m4 + 1); + statspec = GetCustomStationSpec(STAT_CLASS_WAYP, _m[wp->xy].m4 + 1); - if (spec != NULL) { + if (statspec != NULL) { wp->stat_id = _m[wp->xy].m4 + 1; - wp->grfid = spec->grfid; - wp->localidx = spec->localidx; + wp->grfid = statspec->grfid; + wp->localidx = statspec->localidx; } else { // No custom graphics set, so set to default. wp->stat_id = 0; |