Reenable incorrectly compressed files warning

svn-id: r24290
This commit is contained in:
Eugene Sandulenko 2006-10-13 08:51:26 +00:00
parent 1564b76e1e
commit 053bbaf9bb

View File

@ -84,10 +84,14 @@ bool BaseChunk::seek(int32 delta, seek_type dir) {
}
if (_curPos > _size) {
// FIXME: This is an evil hack, can't we do better?!
// if (g_scumm->_insaneRunning) {
// warning("Looks like you compressed file %s in wrong way. It has FLU index which was not updated", _name.c_str());
// }
// It may happen that user misused our SAN compression tool
// and ignored FLU index for videos which are used by INSANE.
// This will lead to incorrect seek requests
//
// Check if INSANE is running and give more feedback in this case
if (g_scumm->_insaneRunning) {
warning("Looks like you compressed file %s in wrong way. It has FLU index which was not updated", _name.c_str());
}
error("invalid seek request : %d > %d (delta == %d)", _curPos, _size, delta);
}
return true;