From 793613a2864a93a519a5b92ca7a8fb030be082ee Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 1 Mar 2006 09:40:34 +0000 Subject: (svn r3697) Rename DIAG1/DIAG2 to X resp. Y as this conveys a bit better in which direction a pieces of rail goes --- station_cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index 98cdaf127..9ff2c3e7a 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -1033,7 +1033,7 @@ int32 CmdBuildRailroadStation(int x, int y, uint32 flags, uint32 p1, uint32 p2) st->build_date = _date; tile_delta = direction ? TileDiffXY(0, 1) : TileDiffXY(1, 0); - track = direction ? TRACK_DIAG2 : TRACK_DIAG1; + track = direction ? TRACK_Y : TRACK_X; statspec = (p2 & 0x10) != 0 ? GetCustomStation(STAT_CLASS_DFLT, p2 >> 8) : NULL; layout_ptr = alloca(numtracks * plat_len); @@ -1149,7 +1149,7 @@ int32 CmdRemoveFromRailroadStation(int x, int y, uint32 flags, uint32 p1, uint32 // if we reached here, it means we can actually delete it. do that. if (flags & DC_EXEC) { - Track track = HASBIT(_m[tile].m5, 0) ? TRACK_DIAG2 : TRACK_DIAG1; + Track track = HASBIT(_m[tile].m5, 0) ? TRACK_Y : TRACK_X; DoClearSquare(tile); SetSignalsOnBothDir(tile, track); // now we need to make the "spanned" area of the railway station smaller if we deleted something at the edges. @@ -1228,7 +1228,7 @@ static int32 RemoveRailroadStation(Station *st, TileIndex tile, uint32 flags) if (!EnsureNoVehicle(tile)) return CMD_ERROR; if (flags & DC_EXEC) { - Track track = HASBIT(_m[tile].m5, 0) ? TRACK_DIAG2 : TRACK_DIAG1; + Track track = HASBIT(_m[tile].m5, 0) ? TRACK_Y : TRACK_X; DoClearSquare(tile); SetSignalsOnBothDir(tile, track); } -- cgit v1.2.3-54-g00ecf