summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-01-11 12:32:10 +0000
committercelestar <celestar@openttd.org>2007-01-11 12:32:10 +0000
commit1691b2da618e2701adee128eb5fc4168bff69f59 (patch)
tree5641df6933c5082202a0fd343b0195526ff1345c /src/viewport.cpp
parent2ac0410767683fb0e6315433f9805712cb85f5bd (diff)
downloadopenttd-1691b2da618e2701adee128eb5fc4168bff69f59.tar.xz
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 85d4493b1..60c0b5b4a 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -2043,7 +2043,7 @@ static int CalcHeightdiff(HighLightStyle style, uint distance, TileIndex start_t
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 @@ static int CalcHeightdiff(HighLightStyle style, uint distance, TileIndex start_t
} 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;
}