diff options
author | Travis Howell | 2005-04-12 13:18:40 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-12 13:18:40 +0000 |
commit | 4efa8da52a1f64796562629c286be09ea10fd624 (patch) | |
tree | 3df80cbc066126c403b1f04dc45efa754a5a5e0f /scumm/script_v7he.cpp | |
parent | 185aa763513f2e7e3c206ade8fb0c51c24c49b55 (diff) | |
download | scummvm-rg350-4efa8da52a1f64796562629c286be09ea10fd624.tar.gz scummvm-rg350-4efa8da52a1f64796562629c286be09ea10fd624.tar.bz2 scummvm-rg350-4efa8da52a1f64796562629c286be09ea10fd624.zip |
Not all polygons should be cleared in startScene().
A few minor corrections.
svn-id: r17567
Diffstat (limited to 'scumm/script_v7he.cpp')
-rw-r--r-- | scumm/script_v7he.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp index 8b635f0d45..d1e1cf4196 100644 --- a/scumm/script_v7he.cpp +++ b/scumm/script_v7he.cpp @@ -1038,8 +1038,8 @@ void ScummEngine_v70he::o70_setWindowCaption() { void ScummEngine_v70he::o70_polygonOps() { int vert1x, vert1y, vert2x, vert2y, vert3x, vert3y, vert4x, vert4y; - int id; - int fromId, toId; + int id, fromId, toId; + bool flag; byte subOp = fetchScriptByte(); @@ -1056,8 +1056,9 @@ void ScummEngine_v70he::o70_polygonOps() { vert2x = pop(); vert1y = pop(); vert1x = pop(); + flag = (subOp == 69 || subOp == 248); id = pop(); - _wiz.polygonStore(id, (subOp == 69 || subOp == 248), vert1x, vert1y, vert2x, vert2y, vert3x, vert3y, vert4x, vert4y); + _wiz.polygonStore(id, flag, vert1x, vert1y, vert2x, vert2y, vert3x, vert3y, vert4x, vert4y); break; case 28: // HE 100 case 247: |