summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-22 08:43:02 +0000
committertron <tron@openttd.org>2007-02-22 08:43:02 +0000
commit053e2ddda5396a29947093d3e9e3b725429c7102 (patch)
tree2048730a2bf93500bc8d9112bae1371da5ba8b87 /src/station_cmd.cpp
parent20336638d572e8f30590f7d1c08c47cbf60f973f (diff)
downloadopenttd-053e2ddda5396a29947093d3e9e3b725429c7102.tar.xz
(svn r8841) -Fix
Remove {,u}intswap() and replace them by Swap()
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 9cb8a9fac..da42a4447 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2133,7 +2133,7 @@ static uint32 VehicleEnter_Station(Vehicle *v, TileIndex tile, int x, int y)
x &= 0xF;
y &= 0xF;
- if (DiagDirToAxis(dir) != AXIS_X) intswap(x, y);
+ if (DiagDirToAxis(dir) != AXIS_X) Swap(x, y);
if (y == TILE_SIZE / 2) {
if (dir != DIAGDIR_SE && dir != DIAGDIR_SW) x = TILE_SIZE - 1 - x;
if (x == 12) return VETSB_ENTERED_STATION | (station_id << VETS_STATION_ID_OFFSET); /* enter station */
@@ -2818,7 +2818,7 @@ static void Load_STNS(void)
uint w = GB(st->trainst_w, 4, 4);
uint h = GB(st->trainst_w, 0, 4);
- if (GetRailStationAxis(st->train_tile) == AXIS_Y) uintswap(w, h);
+ if (GetRailStationAxis(st->train_tile) != AXIS_X) Swap(w, h);
st->trainst_w = w;
st->trainst_h = h;
}