From 053bbaf9bbb165a89bc800583f8b7066d97e2c4e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 13 Oct 2006 08:51:26 +0000 Subject: Reenable incorrectly compressed files warning svn-id: r24290 --- engines/scumm/smush/chunk.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/engines/scumm/smush/chunk.cpp b/engines/scumm/smush/chunk.cpp index d698baa844..6395f67726 100644 --- a/engines/scumm/smush/chunk.cpp +++ b/engines/scumm/smush/chunk.cpp @@ -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; -- cgit v1.2.3