[Scummvm-cvs-logs] SF.net SVN: scummvm:[42254] scummvm/branches/gsoc2009-draci/engines/draci/ script.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Wed Jul 8 08:14:17 CEST 2009
Revision: 42254
http://scummvm.svn.sourceforge.net/scummvm/?rev=42254&view=rev
Author: dkasak13
Date: 2009-07-08 06:14:17 +0000 (Wed, 08 Jul 2009)
Log Message:
-----------
Made Script::run() seek in SEEK_CUR mode when jumping instead of the default SEEK_SET. It also now checks whether there is a non-zero jump value set before doing the jump.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/script.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/script.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/script.cpp 2009-07-08 03:19:51 UTC (rev 42253)
+++ scummvm/branches/gsoc2009-draci/engines/draci/script.cpp 2009-07-08 06:14:17 UTC (rev 42254)
@@ -450,7 +450,8 @@
reader.pos(), _jump, reader.pos() + _jump);
// Account for GPL jump that some commands set
- reader.seek(reader.pos() + _jump);
+ if (_jump != 0)
+ reader.seek(_jump, SEEK_CUR);
// Reset jump
_jump = 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