src/viewport.cpp
changeset 5853 df216f54532c
parent 5852 cb3f71b16e1a
child 5919 2b58160d667d
--- a/src/viewport.cpp	Thu Jan 11 11:05:01 2007 +0000
+++ b/src/viewport.cpp	Thu Jan 11 12:32:10 2007 +0000
@@ -2043,7 +2043,7 @@
 	uint h0, h1, ht; // start heigth, end height, and temp variable
 
 	if (start_tile == end_tile) return 0;
-	if (swap) swap_tile(&start_tile, &end_tile);
+	if (swap) SwapT(&start_tile, &end_tile);
 
 	switch (style & HT_DRAG_MASK) {
 		case HT_RECT: {
@@ -2103,7 +2103,7 @@
 		} break;
 	}
 
-	if (swap) swap_uint32(&h0, &h1);
+	if (swap) SwapT(&h0, &h1);
 	/* Minimap shows height in intervals of 50 meters, let's do the same */
 	return (int)(h1 - h0) * 50;
 }