diff options
author | strangerke | 2011-05-25 20:08:54 +0200 |
---|---|---|
committer | strangerke | 2011-05-25 23:39:03 +0200 |
commit | be3306a9eb2bff80fc1f9bdc858ac4d759d926e4 (patch) | |
tree | aa578575d8b8db872da81a7ffbe8344e2379d527 | |
parent | 65a9ef7639c65afa685b2805f52df567e044810b (diff) | |
download | scummvm-rg350-be3306a9eb2bff80fc1f9bdc858ac4d759d926e4.tar.gz scummvm-rg350-be3306a9eb2bff80fc1f9bdc858ac4d759d926e4.tar.bz2 scummvm-rg350-be3306a9eb2bff80fc1f9bdc858ac4d759d926e4.zip |
TSAGE: Cosmetic modification, for consistency
-rw-r--r-- | engines/tsage/debugger.cpp | 15 |
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; |