diff options
author | Filippos Karapetis | 2011-12-05 21:24:36 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-05 21:24:36 +0200 |
commit | f0fc910d28f4e44f82f17c0bae14ae57aee5cf17 (patch) | |
tree | e99cf178a47c2fcf3e55b12668af7c5386d13930 /gui | |
parent | 22787ec542626b4b530047fe0d6c8727dcdf0cd1 (diff) | |
download | scummvm-rg350-f0fc910d28f4e44f82f17c0bae14ae57aee5cf17.tar.gz scummvm-rg350-f0fc910d28f4e44f82f17c0bae14ae57aee5cf17.tar.bz2 scummvm-rg350-f0fc910d28f4e44f82f17c0bae14ae57aee5cf17.zip |
COMMON: Fix styling
Diffstat (limited to 'gui')
-rw-r--r-- | gui/debugger.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp index d5fdbd82c6..13a347a9fa 100644 --- a/gui/debugger.cpp +++ b/gui/debugger.cpp @@ -247,16 +247,15 @@ bool Debugger::parseCommand(const char *inputOrig) { *(int32 *)_dvars[i].variable = atoi(param[1]); DebugPrintf("(int)%s = %d\n", param[0], *(int32 *)_dvars[i].variable); break; - case DVAR_BOOL: - { - Common::String value = Common::String(param[1]); - if (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("false") || - value == "1" || value == "0") { - *(bool *)_dvars[i].variable = (value.equalsIgnoreCase("true") || value == "1"); - DebugPrintf("(bool)%s = %s\n", param[0], *(bool *)_dvars[i].variable ? "true" : "false"); - } else { - DebugPrintf("Invalid value for boolean variable. Valid values are \"true\", \"false\", \"1\", \"0\""); - } + case DVAR_BOOL: { + Common::String value = Common::String(param[1]); + if (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("false") || + value == "1" || value == "0") { + *(bool *)_dvars[i].variable = (value.equalsIgnoreCase("true") || value == "1"); + DebugPrintf("(bool)%s = %s\n", param[0], *(bool *)_dvars[i].variable ? "true" : "false"); + } else { + DebugPrintf("Invalid value for boolean variable. Valid values are \"true\", \"false\", \"1\", \"0\""); + } } break; // Integer Array |