From 187013b6a3962af91479d8837f04b82095b7059f Mon Sep 17 00:00:00 2001 From: belugas Date: Thu, 27 Apr 2006 18:28:56 +0000 Subject: (svn r4593) CodeChange : Renamed spec (when using StationSpec) to statspec. This is following the same scheme as for IndustrySpec --- station_cmd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'station_cmd.c') 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; -- cgit v1.2.3-54-g00ecf