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 | ea73b466844a048f9f55b933f243ec19bdaaa18c (patch) | |
tree | 19340b96ef341c9784a27b719a1a90c2c691ca56 /tile.c | |
parent | 235e72829e55cbb1e7632fe1b2d1429f6f3be054 (diff) | |
download | openttd-ea73b466844a048f9f55b933f243ec19bdaaa18c.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; } |