aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorFlorian Kagerer2009-06-01 18:25:43 +0000
committerFlorian Kagerer2009-06-01 18:25:43 +0000
commit8b59d275abc7a044155c361468c5f0308af10e24 (patch)
tree2d962be3ec13bfa2d024902f45c5be98a157fc58 /engines/kyra
parent42032cf7eccc5bdc9b179c5ce3f575af3396e1f0 (diff)
downloadscummvm-rg350-8b59d275abc7a044155c361468c5f0308af10e24.tar.gz
scummvm-rg350-8b59d275abc7a044155c361468c5f0308af10e24.tar.bz2
scummvm-rg350-8b59d275abc7a044155c361468c5f0308af10e24.zip
LOL: add workaround comment (at LordHoto's repeated insistence)
svn-id: r41105
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/sprites_lol.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/kyra/sprites_lol.cpp b/engines/kyra/sprites_lol.cpp
index ccc4725827..81dbb5f33c 100644
--- a/engines/kyra/sprites_lol.cpp
+++ b/engines/kyra/sprites_lol.cpp
@@ -278,6 +278,10 @@ void LoLEngine::placeMonster(MonsterInPlay *monster, uint16 x, uint16 y) {
_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;