summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-11 19:36:21 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-15 10:16:10 +0200
commitddaedaf32a1981dcd93cafee0cae879f96207fe4 (patch)
treeddc1b347a797ec74084eac1d943d1bd4314e0455 /src
parentbb9121dbd4690405b54e7e6ed6e711ead16435ac (diff)
downloadopenttd-ddaedaf32a1981dcd93cafee0cae879f96207fe4.tar.xz
Fix: empty undocumented branches
Diffstat (limited to 'src')
-rw-r--r--src/blitter/32bpp_anim_sse4.cpp1
-rw-r--r--src/saveload/game_sl.cpp3
-rw-r--r--src/strgen/strgen_base.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/blitter/32bpp_anim_sse4.cpp b/src/blitter/32bpp_anim_sse4.cpp
index 566ef0c0f..c6213ce30 100644
--- a/src/blitter/32bpp_anim_sse4.cpp
+++ b/src/blitter/32bpp_anim_sse4.cpp
@@ -155,6 +155,7 @@ bmno_full_transparency:
if ((bt_last == BT_NONE && effective_width & 1) || bt_last == BT_ODD) {
if (src->a == 0) {
+ /* Complete transparency. */
} else if (src->a == 255) {
*anim = *(const uint16*) src_mv;
*dst = (src_mv->m >= PALETTE_ANIM_START) ? AdjustBrightneSSE(LookupColourInPalette(src_mv->m), src_mv->v) : *src;
diff --git a/src/saveload/game_sl.cpp b/src/saveload/game_sl.cpp
index d7bb22a66..00ca6d9ab 100644
--- a/src/saveload/game_sl.cpp
+++ b/src/saveload/game_sl.cpp
@@ -70,8 +70,7 @@ static void Load_GSDT()
}
GameConfig *config = GameConfig::GetConfig(GameConfig::SSS_FORCE_GAME);
- if (_game_saveload_name.empty()) {
- } else {
+ if (!_game_saveload_name.empty()) {
config->Change(_game_saveload_name.c_str(), _game_saveload_version, false, _game_saveload_is_random);
if (!config->HasScript()) {
/* No version of the GameScript available that can load the data. Try to load the
diff --git a/src/strgen/strgen_base.cpp b/src/strgen/strgen_base.cpp
index 60e27e752..9d1346e17 100644
--- a/src/strgen/strgen_base.cpp
+++ b/src/strgen/strgen_base.cpp
@@ -457,7 +457,7 @@ void EmitGender(Buffer *buffer, char *buf, int value)
/* This is a {G 0 foo bar two} command.
* If no relative number exists, default to +0 */
- if (!ParseRelNum(&buf, &argidx, &offset)) {}
+ ParseRelNum(&buf, &argidx, &offset);
const CmdStruct *cmd = _cur_pcs.cmd[argidx];
if (cmd == nullptr || (cmd->flags & C_GENDER) == 0) {