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/viewport.cpp | |
parent | 0d041a87cc475253176f796c156a3c49032eb415 (diff) | |
download | openttd-103d119c510a83c3b0cca20328ad4d87e8159d6a.tar.xz |
(svn r8841) -Fix
Remove {,u}intswap() and replace them by Swap()
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index edba8cd94..b34e94fbf 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1881,8 +1881,8 @@ void UpdateTileSelection(void) x1 &= ~0xF; y1 &= ~0xF; - if (x1 >= x2) intswap(x1,x2); - if (y1 >= y2) intswap(y1,y2); + if (x1 >= x2) Swap(x1, x2); + if (y1 >= y2) Swap(y1, y2); _thd.new_pos.x = x1; _thd.new_pos.y = y1; _thd.new_size.x = x2 - x1 + TILE_SIZE; |