diff options
author | Travis Howell | 2005-05-29 12:00:00 +0000 |
---|---|---|
committer | Travis Howell | 2005-05-29 12:00:00 +0000 |
commit | f03b73a6a9d4b91ae9d41dac60c752cbaf51e9c5 (patch) | |
tree | b260b0234b0b1ffef905b4a35753344fcb55348c /scumm | |
parent | 4fc5ccb8a68bd55af1bdabaabe8d16a7f19c8e89 (diff) | |
download | scummvm-rg350-f03b73a6a9d4b91ae9d41dac60c752cbaf51e9c5.tar.gz scummvm-rg350-f03b73a6a9d4b91ae9d41dac60c752cbaf51e9c5.tar.bz2 scummvm-rg350-f03b73a6a9d4b91ae9d41dac60c752cbaf51e9c5.zip |
Set zorder to zero by default.
svn-id: r18289
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/wiz_he.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp index 0556d54adb..eb52b92ba2 100644 --- a/scumm/wiz_he.cpp +++ b/scumm/wiz_he.cpp @@ -1438,6 +1438,10 @@ void Wiz::displayWizComplexImage(const WizParameters *params) { if (params->processFlags & kWPFXmapNum) { xmapNum = params->xmapNum; } + int zorder = 0; + if (params->img.zorder) { + zorder = params->img.zorder; + } int field_390 = 0; if (params->processFlags & 0x200000) { field_390 = params->img.field_390; @@ -1476,7 +1480,7 @@ void Wiz::displayWizComplexImage(const WizParameters *params) { pwi->resNum = params->img.resNum; pwi->x1 = po_x; pwi->y1 = po_y; - pwi->zorder = params->img.zorder; + pwi->zorder = zorder; pwi->state = state; pwi->flags = flags; pwi->xmapNum = xmapNum; @@ -1492,7 +1496,7 @@ void Wiz::displayWizComplexImage(const WizParameters *params) { if (flags & kWIFIsPolygon) { drawWizPolygon(params->img.resNum, state, po_x, flags, xmapNum, dstResNum, paletteNum); // XXX , VAR(VAR_WIZ_TCOLOR)); } else { - drawWizImage(params->img.resNum, state, po_x, po_y, params->img.zorder, xmapNum, field_390, r, flags, dstResNum, paletteNum); + drawWizImage(params->img.resNum, state, po_x, po_y, zorder, xmapNum, field_390, r, flags, dstResNum, paletteNum); } } } |