Check if VAR_WIZ_TCOLOR is set, before using it.

BMAP images are only used in HE71+.

svn-id: r15580
This commit is contained in:
Travis Howell 2004-10-17 06:07:45 +00:00
parent 4667a12c9d
commit eaa65d57dd
2 changed files with 6 additions and 1 deletions

View File

@ -631,6 +631,11 @@ void ScummEngine::redrawBGAreas() {
}
void ScummEngine_v70he::redrawBGAreas() {
if (_heversion == 70) {
ScummEngine::redrawBGAreas();
return;
}
int val = 0;
if (camera._cur.x != camera._last.x && _charset->_hasMask)
stopTalk();

View File

@ -925,7 +925,7 @@ void ScummEngine_v72he::captureWizImage(int resType, int resNum, const Common::R
int w = rCapt.width();
int h = rCapt.height();
int tColor = VAR(VAR_WIZ_TCOLOR);
int tColor = (VAR_WIZ_TCOLOR != 0xFF) ? VAR(VAR_WIZ_TCOLOR) : 5;
// compute compressed size
int dataSize = 0;