[Scummvm-cvs-logs] SF.net SVN: scummvm:[51706] scummvm/trunk/engines/kyra/sound_lol.cpp
athrxx at users.sourceforge.net
athrxx at users.sourceforge.net
Tue Aug 3 18:54:41 CEST 2010
Revision: 51706
http://scummvm.svn.sourceforge.net/scummvm/?rev=51706&view=rev
Author: athrxx
Date: 2010-08-03 16:54:39 +0000 (Tue, 03 Aug 2010)
Log Message:
-----------
LOL: fixed possible crash in environmental sfx code
Modified Paths:
--------------
scummvm/trunk/engines/kyra/sound_lol.cpp
Modified: scummvm/trunk/engines/kyra/sound_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound_lol.cpp 2010-08-03 16:43:57 UTC (rev 51705)
+++ scummvm/trunk/engines/kyra/sound_lol.cpp 2010-08-03 16:54:39 UTC (rev 51706)
@@ -225,7 +225,7 @@
for (int i = 3; i > 0; i--) {
int dir = calcMonsterDirection(cbl & 0x1f, cbl >> 5, block & 0x1f, block >> 5);
- cbl += blockShiftTable[dir];
+ cbl = (cbl + blockShiftTable[dir]) & 0x3ff;
if (cbl != block) {
if (testWallFlag(cbl, 0, 1))
_environmentSfxVol >>= 1;
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