diff options
author | hackykid <hackykid@openttd.org> | 2005-06-01 11:52:44 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-06-01 11:52:44 +0000 |
commit | f7dcd2e834c28e7b4e4ba6e7833cf79c3b97b335 (patch) | |
tree | 85ffc0991699f19e38f7e937f8b493274594c341 /rail_gui.c | |
parent | 351d7aaa9fd2fe1e5cd464130186727df38e646f (diff) | |
download | openttd-f7dcd2e834c28e7b4e4ba6e7833cf79c3b97b335.tar.xz |
(svn r2390) - Codechange: Fix some warnings on GCC 4.0.0
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rail_gui.c b/rail_gui.c index f4f5e4f15..9734c138f 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -627,11 +627,11 @@ static void HandleStationPlacement(uint start, uint end) uint ey = TileY(end); uint w,h; - if (sx > ex) intswap(sx,ex); - if (sy > ey) intswap(sy,ey); + if (sx > ex) uintswap(sx,ex); + if (sy > ey) uintswap(sy,ey); w = ex - sx + 1; h = ey - sy + 1; - if (!_railstation.orientation) intswap(w,h); + if (!_railstation.orientation) uintswap(w,h); // TODO: Custom station selector GUI. Now we just try using first custom station // (and fall back to normal stations if it isn't available). |