summaryrefslogtreecommitdiff
path: root/tile.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-13 21:15:00 +0000
committertron <tron@openttd.org>2006-02-13 21:15:00 +0000
commit5352e9fbcbd3b4dca63746f5cf74b1541b8ebb6c (patch)
tree19340b96ef341c9784a27b719a1a90c2c691ca56 /tile.c
parent8744075a6cb64578f7e255220d76b77b26eb1a45 (diff)
downloadopenttd-5352e9fbcbd3b4dca63746f5cf74b1541b8ebb6c.tar.xz
(svn r3597) Miscellaneous (I like that word) changes: Fix some indentation, add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff
Diffstat (limited to 'tile.c')
-rw-r--r--tile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tile.c b/tile.c
index 9fe175766..7d2f680b8 100644
--- a/tile.c
+++ b/tile.c
@@ -46,8 +46,7 @@ uint GetTileSlope(TileIndex tile, uint *h)
if ((d -= min) != 0) r += (--d << 4) + 2;
if ((b -= min) != 0) r += (--b << 4) + 1;
- if (h != NULL)
- *h = min * 8;
+ if (h != NULL) *h = min * 8;
return r;
}