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/vehicle.cpp | |
parent | 0d041a87cc475253176f796c156a3c49032eb415 (diff) | |
download | openttd-103d119c510a83c3b0cca20328ad4d87e8159d6a.tar.xz |
(svn r8841) -Fix
Remove {,u}intswap() and replace them by Swap()
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index ac5f93fbc..1e4ed0dcc 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -180,8 +180,8 @@ Vehicle *FindVehicleBetween(TileIndex from, TileIndex to, byte z, bool without_c /* Make sure x1 < x2 or y1 < y2 */ if (x1 > x2 || y1 > y2) { - intswap(x1,x2); - intswap(y1,y2); + Swap(x1, x2); + Swap(y1, y2); } FOR_ALL_VEHICLES(veh) { if (without_crashed && (veh->vehstatus & VS_CRASHED) != 0) continue; |