diff -ur ScummVM-cvs20021206/scummvm/scumm/script_v1.cpp ScummVM-cvs20021206+hack/scummvm/scumm/script_v1.cpp
old
|
new
|
|
2330 | 2330 | _opcode = fetchScriptByte(); |
2331 | 2331 | |
2332 | 2332 | switch (_opcode & 0x1F) { |
2333 | | case 1: /* wait for actor */ |
2334 | | if (derefActorSafe(getVarOrDirectByte(0x80), "o5_wait")->moving) |
2335 | | break; |
2336 | | return; |
| 2333 | case 1: { /* wait for actor */ |
| 2334 | Actor *a = derefActorSafe(getVarOrDirectByte(0x80), "o5_wait"); |
| 2335 | if (a && a->isInCurrentRoom() && a->moving) |
| 2336 | break; |
| 2337 | return; |
| 2338 | } |
2337 | 2339 | case 2: /* wait for message */ |
2338 | 2340 | if (_vars[VAR_HAVE_MSG]) |
2339 | 2341 | break; |
diff -ur ScummVM-cvs20021206/scummvm/scumm/script_v2.cpp ScummVM-cvs20021206+hack/scummvm/scumm/script_v2.cpp
old
|
new
|
|
2032 | 2032 | { |
2033 | 2033 | switch (fetchScriptByte()) { |
2034 | 2034 | case 168:{ |
| 2035 | Actor *a = derefActorSafe(pop(), "o6_wait"); |
2035 | 2036 | int offs = (int16)fetchScriptWord(); |
2036 | | if (derefActorSafe(pop(), "o6_wait")->moving) { |
| 2037 | if (a && a->isInCurrentRoom() && a->moving) { |
2037 | 2038 | _scriptPointer += offs; |
2038 | 2039 | o6_breakHere(); |
2039 | 2040 | } |