diff options
author | Travis Howell | 2004-10-12 14:12:20 +0000 |
---|---|---|
committer | Travis Howell | 2004-10-12 14:12:20 +0000 |
commit | 687a5db4a835185147571452f22b700182f9b6f5 (patch) | |
tree | f046749b86c6517a1e457f93365b8383edd060ed /scumm/script_v80he.cpp | |
parent | ec413cc8f9d49ca3c93092e955032a92857c3960 (diff) | |
download | scummvm-rg350-687a5db4a835185147571452f22b700182f9b6f5.tar.gz scummvm-rg350-687a5db4a835185147571452f22b700182f9b6f5.tar.bz2 scummvm-rg350-687a5db4a835185147571452f22b700182f9b6f5.zip |
Rename vars
Add some missng code for HE games.
svn-id: r15528
Diffstat (limited to 'scumm/script_v80he.cpp')
-rw-r--r-- | scumm/script_v80he.cpp | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp index 679b4e1092..5265282939 100644 --- a/scumm/script_v80he.cpp +++ b/scumm/script_v80he.cpp @@ -636,30 +636,60 @@ void ScummEngine_v80he::o80_drawWizPolygon() { void ScummEngine_v80he::o80_unknownE0() { // wizImage related - int a, b, c, d, e, f, type = 1; + int b, c, d, num, x1, y1, type = 0; - a = pop(); b = pop(); + num = pop(); c = pop(); d = pop(); - e = pop(); - f = pop(); + y1 = pop(); + x1 = pop(); byte subOp = fetchScriptByte(); switch (subOp) { case 55: + { + Actor *a = derefActorSafe(num, "o80_unknownE0"); + int top_actor = a->top; + int bottom_actor = a->bottom; + a->drawToBackBuf = true; + a->needRedraw = true; + a->drawActorCostume(); + a->drawToBackBuf = false; + a->needRedraw = true; + a->drawActorCostume(); + a->needRedraw = false; + + if (a->top > top_actor) + a->top = top_actor; + if (a->bottom < bottom_actor) + a->bottom = bottom_actor; + type = 2; + } break; case 63: + { + WizImage wi; + wi.flags = 0; + wi.y1 = y1; + wi.x1 = x1; + wi.resNum = num; + wi.state = 0; + displayWizImage(&wi); + type = 3; + } break; case 66: type = 1; break; + default: + error("o80_unknownE0: default case %d", subOp); } - debug(1,"o80_unknownE0 stub: type %d (%d, %d, %d, %d, %d, %d)",subOp, a, b, c, d, e, f); + debug(1,"o80_unknownE0 stub: type %d (%d, num %d, %d, %d, y %d, x %d)", type, b, num, c, d, y1, x1); } void ScummEngine_v80he::o80_pickVarRandom() { |