From 8b59d275abc7a044155c361468c5f0308af10e24 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Mon, 1 Jun 2009 18:25:43 +0000 Subject: LOL: add workaround comment (at LordHoto's repeated insistence) svn-id: r41105 --- engines/kyra/sprites_lol.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/kyra') 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; -- cgit v1.2.3