summaryrefslogtreecommitdiff
path: root/src/tree_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
commit103d119c510a83c3b0cca20328ad4d87e8159d6a (patch)
tree2048730a2bf93500bc8d9112bae1371da5ba8b87 /src/tree_cmd.cpp
parent0d041a87cc475253176f796c156a3c49032eb415 (diff)
downloadopenttd-103d119c510a83c3b0cca20328ad4d87e8159d6a.tar.xz
(svn r8841) -Fix
Remove {,u}intswap() and replace them by Swap()
Diffstat (limited to 'src/tree_cmd.cpp')
-rw-r--r--src/tree_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp
index 32754af94..3121a5b2a 100644
--- a/src/tree_cmd.cpp
+++ b/src/tree_cmd.cpp
@@ -228,8 +228,8 @@ int32 CmdPlantTree(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
ey = TileY(tile);
sx = TileX(p2);
sy = TileY(p2);
- if (ex < sx) intswap(ex, sx);
- if (ey < sy) intswap(ey, sy);
+ if (ex < sx) Swap(ex, sx);
+ if (ey < sy) Swap(ey, sy);
cost = 0; // total cost