diff options
author | Travis Howell | 2004-08-28 03:18:52 +0000 |
---|---|---|
committer | Travis Howell | 2004-08-28 03:18:52 +0000 |
commit | 22fb004e209f837b86231ec213a07ad7e7b90ec5 (patch) | |
tree | 53f797b31e08c781109c4ea12adf9979906718e7 /scumm/debugger.cpp | |
parent | 13b6cf7c67dce13c1d457d58ecee20345c83e8e2 (diff) | |
download | scummvm-rg350-22fb004e209f837b86231ec213a07ad7e7b90ec5.tar.gz scummvm-rg350-22fb004e209f837b86231ec213a07ad7e7b90ec5.tar.bz2 scummvm-rg350-22fb004e209f837b86231ec213a07ad7e7b90ec5.zip |
akos should queue commmands and executate after drawing costumes (Caused race issues in HE games).
Remove some duplciate code
Enable from HE games
Add a few stubs for some additional akos codes
svn-id: r14799
Diffstat (limited to 'scumm/debugger.cpp')
-rw-r--r-- | scumm/debugger.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index 896afb27d0..17df7b036f 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -364,7 +364,7 @@ bool ScummDebugger::Cmd_PrintScript(int argc, const char **argv) { bool ScummDebugger::Cmd_Actor(int argc, const char **argv) { Actor *a; int actnum; - int value = 0; + int value = 0, value2 = 0; if (argc < 3) { DebugPrintf("Syntax: actor <actornum> <command> <parameter>\n"); @@ -380,8 +380,15 @@ bool ScummDebugger::Cmd_Actor(int argc, const char **argv) { a = &_vm->_actors[actnum]; if (argc > 3) value = atoi(argv[3]); + if (argc > 4) + value2 = atoi(argv[4]); - if (!strcmp(argv[2], "ignoreboxes")) { + if (!strcmp(argv[2], "animvar")) { + + a->setAnimVar(value, value2); + DebugPrintf("Actor[%d].animVar[%d] = %d\n", actnum, value, a->getAnimVar(value)); + + } else if (!strcmp(argv[2], "ignoreboxes")) { a->ignoreBoxes = (value > 0); DebugPrintf("Actor[%d].ignoreBoxes = %d\n", actnum, a->ignoreBoxes); } else if (!strcmp(argv[2], "x")) { |