(svn r2390) - Codechange: Fix some warnings on GCC 4.0.0

This commit is contained in:
hackykid
2005-06-01 11:52:44 +00:00
parent 351d7aaa9f
commit f7dcd2e834
10 changed files with 18 additions and 12 deletions

View File

@@ -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).