diff options
author | J0an Josep <juanjo.ng.83@gmail.com> | 2017-08-15 17:56:34 +0200 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-04-30 21:52:40 +0200 |
commit | cfb8092397709fe2276d8a5c5386c334b0a9199e (patch) | |
tree | 714fa04d7b38f6e37f518a33ed3d38a67cfeca4b /src/viewport.cpp | |
parent | 3f40cd505db78932cd355711d6294e6dc4446410 (diff) | |
download | openttd-cfb8092397709fe2276d8a5c5386c334b0a9199e.tar.xz |
Fix b4b98e5165: Use FALLTHROUGH attribute with correct indentation.
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 6de827b4e..07d4e92fd 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -2636,8 +2636,8 @@ static int CalcHeightdiff(HighLightStyle style, uint distance, TileIndex start_t byte style_t = (byte)(TileX(end_tile) > TileX(start_tile)); start_tile = TILE_ADD(start_tile, ToTileIndexDiff(heightdiff_area_by_dir[style_t])); end_tile = TILE_ADD(end_tile, ToTileIndexDiff(heightdiff_area_by_dir[2 + style_t])); + FALLTHROUGH; } - FALLTHROUGH; case HT_POINT: h0 = TileHeight(start_tile); |