[Scummvm-cvs-logs] scummvm master -> f0fc910d28f4e44f82f17c0bae14ae57aee5cf17
bluegr
md5 at scummvm.org
Mon Dec 5 20:25:11 CET 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f0fc910d28 COMMON: Fix styling
Commit: f0fc910d28f4e44f82f17c0bae14ae57aee5cf17
https://github.com/scummvm/scummvm/commit/f0fc910d28f4e44f82f17c0bae14ae57aee5cf17
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-12-05T11:24:36-08:00
Commit Message:
COMMON: Fix styling
Changed paths:
gui/debugger.cpp
diff --git a/gui/debugger.cpp b/gui/debugger.cpp
index d5fdbd8..13a347a 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
More information about the Scummvm-git-logs
mailing list