aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstrangerke2011-05-25 20:08:54 +0200
committerstrangerke2011-05-25 23:39:03 +0200
commitbe3306a9eb2bff80fc1f9bdc858ac4d759d926e4 (patch)
treeaa578575d8b8db872da81a7ffbe8344e2379d527
parent65a9ef7639c65afa685b2805f52df567e044810b (diff)
downloadscummvm-rg350-be3306a9eb2bff80fc1f9bdc858ac4d759d926e4.tar.gz
scummvm-rg350-be3306a9eb2bff80fc1f9bdc858ac4d759d926e4.tar.bz2
scummvm-rg350-be3306a9eb2bff80fc1f9bdc858ac4d759d926e4.zip
TSAGE: Cosmetic modification, for consistency
-rw-r--r--engines/tsage/debugger.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/tsage/debugger.cpp b/engines/tsage/debugger.cpp
index 42ae366ced..5288c98b72 100644
--- a/engines/tsage/debugger.cpp
+++ b/engines/tsage/debugger.cpp
@@ -63,13 +63,13 @@ bool Debugger::Cmd_Scene(int argc, const char **argv) {
if (argc < 2) {
DebugPrintf("Usage: %s <scene number> [prior scene #]\n", argv[0]);
return true;
- } else {
- if (argc == 3)
- _globals->_sceneManager._sceneNumber = strToInt(argv[2]);
+ }
- _globals->_sceneManager.changeScene(strToInt(argv[1]));
- return false;
- }
+ if (argc == 3)
+ _globals->_sceneManager._sceneNumber = strToInt(argv[2]);
+
+ _globals->_sceneManager.changeScene(strToInt(argv[1]));
+ return false;
}
/**
@@ -377,7 +377,8 @@ bool Debugger::Cmd_MoveObject(int argc, const char **argv) {
RING_INVENTORY._jar._sceneNumber = sceneNum;
break;
default:
- DebugPrintf("Invlid object Id %s\n", argv[1]);
+ DebugPrintf("Invalid object Id %s\n", argv[1]);
+ break;
}
return true;