aboutsummaryrefslogtreecommitdiff
path: root/saga/sthread.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-01-19 11:29:29 +0000
committerEugene Sandulenko2005-01-19 11:29:29 +0000
commit001bb7c74e0af1c407d26651f73353bfaca61684 (patch)
tree91a2910173d7d248a29735cdb9123a838b401177 /saga/sthread.cpp
parent1b5e5981a62ceef659e19fa7548ca84068246f52 (diff)
downloadscummvm-rg350-001bb7c74e0af1c407d26651f73353bfaca61684.tar.gz
scummvm-rg350-001bb7c74e0af1c407d26651f73353bfaca61684.tar.bz2
scummvm-rg350-001bb7c74e0af1c407d26651f73353bfaca61684.zip
o Made ITEColors enum public in interface.h. Please use them. These colors
stay in each scene except intro and fade-in/fade-outs. o Implemented status text coloring during work of auxiliary scripts. svn-id: r16598
Diffstat (limited to 'saga/sthread.cpp')
-rw-r--r--saga/sthread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/saga/sthread.cpp b/saga/sthread.cpp
index 6fbc253775..06742837c7 100644
--- a/saga/sthread.cpp
+++ b/saga/sthread.cpp
@@ -260,7 +260,7 @@ void Script::runThread(ScriptThread *thread, int instr_limit) {
// debug print (opCode name etc) should be placed here
// SDebugPrintInstr(thread)
-// debug(2, "Executing thread offset: %lu (%x) stack: %d", thread->instructionOffset, operandChar, thread->stackSize());
+ debug(8, "Executing thread offset: %lu (%x) stack: %d", thread->instructionOffset, operandChar, thread->stackSize());
switch (operandChar) {
case 0x01: // nextblock
// Some sort of "jump to the start of the next memory
@@ -463,6 +463,7 @@ void Script::runThread(ScriptThread *thread, int instr_limit) {
data = thread->pop();
n_switch = scriptS.readUint16LE();
+
for (i = 0; i < n_switch; i++) {
switch_num = scriptS.readUint16LE();
switch_jmp = scriptS.readUint16LE();