diff src/viewport.cpp @ 6106:230764f1a316 draft

(svn r8841) -Fix Remove {,u}intswap() and replace them by Swap()
author tron <tron@openttd.org>
date Thu, 22 Feb 2007 08:43:02 +0000 (2007-02-22)
parents cc6d57844f35
children 6def6ecb1bf7
line wrap: on
line diff
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1881,8 +1881,8 @@
 			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;