diff options
author | Torbjörn Andersson | 2004-03-17 09:03:15 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-03-17 09:03:15 +0000 |
commit | 4c3a68027f7f84a58664f77c847d24ab5b9757e4 (patch) | |
tree | bf20e888b9ea1cc2045df84aad12ef1cd54ec7de /sword2/console.cpp | |
parent | 03200025dfb030d887ff9b07d180a8f9e2f225bc (diff) | |
download | scummvm-rg350-4c3a68027f7f84a58664f77c847d24ab5b9757e4.tar.gz scummvm-rg350-4c3a68027f7f84a58664f77c847d24ab5b9757e4.tar.bz2 scummvm-rg350-4c3a68027f7f84a58664f77c847d24ab5b9757e4.zip |
Use the same syntax for accessing script variables as BS1 does, i.e. now
it's Logic::_scriptVars[ID] instead of just ID. Apart from looking cool, it
makes it much easier to tell the difference between variables and constants
when looking at the code.
Of course, this sort of sweeping changes is jolly good for introducing
truly weird regressions, which is why I waited until after 0.6.0.
svn-id: r13331
Diffstat (limited to 'sword2/console.cpp')
-rw-r--r-- | sword2/console.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sword2/console.cpp b/sword2/console.cpp index 6f1d67f2d0..a9497ae361 100644 --- a/sword2/console.cpp +++ b/sword2/console.cpp @@ -118,13 +118,13 @@ Debugger::Debugger(Sword2Engine *vm) } void Debugger::varGet(int var) { - DebugPrintf("%d\n", VAR(var)); + DebugPrintf("%d\n", Logic::_scriptVars[var]); } void Debugger::varSet(int var, int val) { - DebugPrintf("was %d, ", VAR(var)); - VAR(var) = val; - DebugPrintf("now %d\n", VAR(var)); + DebugPrintf("was %d, ", Logic::_scriptVars[var]); + Logic::_scriptVars[var] = val; + DebugPrintf("now %d\n", Logic::_scriptVars[var]); } void Debugger::preEnter() { |