diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 18:58:04 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 18:58:04 +0000 |
commit | 50bfe1a19d26d99b6ee10236771bd8c7cd38be01 (patch) | |
tree | 18ac24e0b26fa3cf7cb17962dde493f142f39a03 /src/viewport.cpp | |
parent | 8be526e4990ef8c7a742e6f3f67a42d0036750eb (diff) | |
download | openttd-50bfe1a19d26d99b6ee10236771bd8c7cd38be01.tar.xz |
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 68af110a8..775d44f32 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -2522,8 +2522,8 @@ static void CalcRaildirsDrawstyle(TileHighlightData *thd, int x, int y, int meth int dx = thd->selstart.x - (thd->selend.x & ~0xF); int dy = thd->selstart.y - (thd->selend.y & ~0xF); - w = myabs(dx) + 16; - h = myabs(dy) + 16; + w = abs(dx) + 16; + h = abs(dy) + 16; if (TileVirtXY(thd->selstart.x, thd->selstart.y) == TileVirtXY(x, y)) { // check if we're only within one tile if (method == VPM_RAILDIRS) { @@ -2678,7 +2678,7 @@ void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method) switch (method) { case VPM_X_OR_Y: /* drag in X or Y direction */ - if (myabs(sy - y) < myabs(sx - x)) { + if (abs(sy - y) < abs(sx - x)) { y = sy; style = HT_DIR_X; } else { |