diff options
author | tron <tron@openttd.org> | 2007-02-22 08:43:02 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-02-22 08:43:02 +0000 |
commit | 103d119c510a83c3b0cca20328ad4d87e8159d6a (patch) | |
tree | 2048730a2bf93500bc8d9112bae1371da5ba8b87 /src/station_cmd.cpp | |
parent | 0d041a87cc475253176f796c156a3c49032eb415 (diff) | |
download | openttd-103d119c510a83c3b0cca20328ad4d87e8159d6a.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.cpp | 4 |
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; } |