Going back to uncached mode for graphics resources of Examine zones. This prevents engine to crash when trying to cache a resource out of the currently selected archive.

svn-id: r29798
This commit is contained in:
Nicola Mettifogo 2007-12-09 17:29:41 +00:00
parent 66a1c085c0
commit 7bef63537d
2 changed files with 4 additions and 1 deletions

View File

@ -488,6 +488,10 @@ void Parallaction::displayComment(ExamineData *data) {
}
if (data->_filename) {
if (data->_cnv == 0) {
data->_cnv = _disk->loadStatic(data->_filename);
}
_gfx->setHalfbriteMode(true);
_gfx->setDialogueBalloon(data->_description, 0, 90, 130, 0, 0);
Common::Rect r;

View File

@ -1318,7 +1318,6 @@ void Parallaction_ns::parseExamineData(Script &script, Zone *z) {
if (!scumm_stricmp(_tokens[0], "file")) {
data->_filename = strdup(_tokens[1]);
data->_cnv = _disk->loadStatic(_tokens[1]);
}
if (!scumm_stricmp(_tokens[0], "desc")) {
data->_description = parseComment(script);