summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-04-27 18:28:56 +0000
committerbelugas <belugas@openttd.org>2006-04-27 18:28:56 +0000
commit187013b6a3962af91479d8837f04b82095b7059f (patch)
tree87c8ce2455b4248172760e3b393211907edadfd8 /station_cmd.c
parent8d54122649ed7d816e91a3a13f2611642a6975d5 (diff)
downloadopenttd-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 'station_cmd.c')
-rw-r--r--station_cmd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 9cd8505b7..b88c9f0e1 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -918,13 +918,13 @@ static inline byte *CreateMulti(byte *layout, int n, byte b)
return layout;
}
-static void GetStationLayout(byte *layout, int numtracks, int plat_len, const StationSpec *spec)
+static void GetStationLayout(byte *layout, int numtracks, int plat_len, const StationSpec *statspec)
{
- if (spec != NULL && spec->lengths >= plat_len &&
- spec->platforms[plat_len - 1] >= numtracks &&
- spec->layouts[plat_len - 1][numtracks - 1]) {
+ if (statspec != NULL && statspec->lengths >= plat_len &&
+ statspec->platforms[plat_len - 1] >= numtracks &&
+ statspec->layouts[plat_len - 1][numtracks - 1]) {
/* Custom layout defined, follow it. */
- memcpy(layout, spec->layouts[plat_len - 1][numtracks - 1],
+ memcpy(layout, statspec->layouts[plat_len - 1][numtracks - 1],
plat_len * numtracks);
return;
}
@@ -1042,7 +1042,7 @@ int32 CmdBuildRailroadStation(TileIndex tile_org, uint32 flags, uint32 p1, uint3
if (GB(p2, 8, 8) >= STAT_CLASS_MAX) return CMD_ERROR;
/* Check if we can allocate a custom stationspec to this station */
- statspec = GetCustomStation(GB(p2, 8, 8), GB(p2, 16, 8));
+ statspec = GetCustomStationSpec(GB(p2, 8, 8), GB(p2, 16, 8));
specindex = AllocateSpecToStation(statspec, st, flags & DC_EXEC);
if (specindex == -1) return CMD_ERROR;