diff options
author | tron <tron@openttd.org> | 2006-02-13 21:15:00 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-13 21:15:00 +0000 |
commit | 5352e9fbcbd3b4dca63746f5cf74b1541b8ebb6c (patch) | |
tree | 19340b96ef341c9784a27b719a1a90c2c691ca56 /tile.c | |
parent | 8744075a6cb64578f7e255220d76b77b26eb1a45 (diff) | |
download | openttd-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |