[Scummvm-cvs-logs] SF.net SVN: scummvm:[45959] scummvm/trunk/engines/teenagent/surface.cpp
megath at users.sourceforge.net
megath at users.sourceforge.net
Tue Nov 17 22:00:29 CET 2009
Revision: 45959
http://scummvm.svn.sourceforge.net/scummvm/?rev=45959&view=rev
Author: megath
Date: 2009-11-17 21:00:28 +0000 (Tue, 17 Nov 2009)
Log Message:
-----------
corrected scene 7 hack
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/surface.cpp
Modified: scummvm/trunk/engines/teenagent/surface.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/surface.cpp 2009-11-17 20:49:48 UTC (rev 45958)
+++ scummvm/trunk/engines/teenagent/surface.cpp 2009-11-17 21:00:28 UTC (rev 45959)
@@ -45,12 +45,13 @@
if (stream->eos())
return;
- for (byte i = 0; i < fn; ++i) {
+ byte i;
+ for (i = 0; i < fn - sub_hack; ++i) {
flags[i] = stream->readUint16LE();
- if (i == 0)
- flags[i] -= sub_hack;
debug(0, "flags[%u] = %u (0x%04x)", i, flags[i], flags[i]);
}
+ for(; i < fn; ++i)
+ debug(0, "*hack* skipping flag %04x", stream->readUint16LE());
}
uint16 w_ = stream->readUint16LE();
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