[Scummvm-cvs-logs] SF.net SVN: scummvm:[41105] scummvm/trunk/engines/kyra/sprites_lol.cpp
athrxx at users.sourceforge.net
athrxx at users.sourceforge.net
Mon Jun 1 20:25:43 CEST 2009
Revision: 41105
http://scummvm.svn.sourceforge.net/scummvm/?rev=41105&view=rev
Author: athrxx
Date: 2009-06-01 18:25:43 +0000 (Mon, 01 Jun 2009)
Log Message:
-----------
LOL: add workaround comment (at LordHoto's repeated insistence)
Modified Paths:
--------------
scummvm/trunk/engines/kyra/sprites_lol.cpp
Modified: scummvm/trunk/engines/kyra/sprites_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sprites_lol.cpp 2009-06-01 17:50:30 UTC (rev 41104)
+++ scummvm/trunk/engines/kyra/sprites_lol.cpp 2009-06-01 18:25:43 UTC (rev 41105)
@@ -278,6 +278,10 @@
_levelBlockProperties[monster->block].direction = 5;
checkSceneUpdateNeed(monster->block);
+ // WORKAROUND: Some monsters in the white tower have sound id's of 0xff. This is definitely a bug, since the
+ // last valid track number is 249 and there is no specific handling for 0xff. Nonetheless this wouldn't
+ // cause problems in the original code, because it just so happens that the invalid memory address points
+ // to an entry in _ingameGMSoundIndex which just so happens to have a value of -1
if (monster->properties->sounds[0] == 0 || monster->properties->sounds[0] == 255 || cont == false)
return;
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