diff options
author | frosch <frosch@openttd.org> | 2017-08-13 18:38:42 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-08-13 18:38:42 +0000 |
commit | b4b98e51655012ea42dbc8ab9e455fbec0d04b39 (patch) | |
tree | 948fc802d5dfdca71454f6ce479e4f429e98488d /src/tree_cmd.cpp | |
parent | 19bae485b028380fbdc94d02ebaecdf3ca23f932 (diff) | |
download | openttd-b4b98e51655012ea42dbc8ab9e455fbec0d04b39.tar.xz |
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
Diffstat (limited to 'src/tree_cmd.cpp')
-rw-r--r-- | src/tree_cmd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp index c862f0dbc..7240cf86d 100644 --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -375,7 +375,8 @@ CommandCost CmdPlantTree(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 msg = STR_ERROR_CAN_T_BUILD_ON_WATER; continue; } - /* FALL THROUGH */ + FALLTHROUGH; + case MP_CLEAR: { if (IsBridgeAbove(tile)) { msg = STR_ERROR_SITE_UNSUITABLE; @@ -680,7 +681,7 @@ static void TileLoop_Trees(TileIndex tile) SetTreeGrowth(tile, 0); break; } - /* FALL THROUGH */ + FALLTHROUGH; case 2: { // add a neighbouring tree /* Don't plant extra trees if that's not allowed. */ |