mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Use of proper FALLTHROUGH macro
parent
53d2153844
commit
a2dd8ed419
|
@ -386,7 +386,8 @@ void GenerateTrees()
|
||||||
|
|
||||||
switch (_settings_game.game_creation.tree_placer) {
|
switch (_settings_game.game_creation.tree_placer) {
|
||||||
case TP_ORIGINAL: i = _settings_game.game_creation.landscape == LT_ARCTIC ? 15 : 6; break;
|
case TP_ORIGINAL: i = _settings_game.game_creation.landscape == LT_ARCTIC ? 15 : 6; break;
|
||||||
case TP_FOREST: /* FALL THROUGH */
|
case TP_FOREST:
|
||||||
|
FALLTHROUGH;
|
||||||
case TP_IMPROVED: i = _settings_game.game_creation.landscape == LT_ARCTIC ? 4 : 2; break;
|
case TP_IMPROVED: i = _settings_game.game_creation.landscape == LT_ARCTIC ? 4 : 2; break;
|
||||||
default: NOT_REACHED();
|
default: NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue