[Scummvm-cvs-logs] SF.net SVN: scummvm:[42135] scummvm/trunk/engines/gob/inter_v1.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Sun Jul 5 14:52:14 CEST 2009


Revision: 42135
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42135&view=rev
Author:   drmccoy
Date:     2009-07-05 12:52:14 +0000 (Sun, 05 Jul 2009)

Log Message:
-----------
Adding a workaround for an invalid expression in Gob1 EGA

Modified Paths:
--------------
    scummvm/trunk/engines/gob/inter_v1.cpp

Modified: scummvm/trunk/engines/gob/inter_v1.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_v1.cpp	2009-07-05 11:58:42 UTC (rev 42134)
+++ scummvm/trunk/engines/gob/inter_v1.cpp	2009-07-05 12:52:14 UTC (rev 42135)
@@ -868,8 +868,17 @@
 	_vm->_draw->_spriteLeft = _vm->_game->_script->readInt16();
 
 	_vm->_draw->_destSpriteX = _vm->_game->_script->readValExpr();
-	_vm->_draw->_destSpriteY = _vm->_game->_script->readValExpr();
 
+	// WORKAROUND: The EGA version of Gobliiins 1 has an invalid expression there
+	if (_vm->isEGA() && (_vm->_game->_script->pos() == 1398) &&
+			!scumm_stricmp(_vm->_game->_curTotFile, "intro.tot")) {
+
+		_vm->_draw->_destSpriteY = 0;
+		_vm->_game->_script->skip(1);
+
+	} else
+		_vm->_draw->_destSpriteY = _vm->_game->_script->readValExpr();
+
 	_vm->_draw->_transparency = _vm->_game->_script->peekByte() & 1;
 	_vm->_draw->_destSurface = ((int16) (_vm->_game->_script->peekByte() >> 1)) - 1;
 	if (_vm->_draw->_destSurface < 0)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list