fix for the flashlight crash in Indy3; I am not 100% sure that this is the right way t do it, though, need to do some more reseach

svn-id: r5496
This commit is contained in:
Max Horn 2002-11-10 15:42:53 +00:00
parent 0b3e4323f0
commit e901190863

View file

@ -616,7 +616,6 @@ void Scumm::drawFlashlight()
static int flashX, flashY, flashW, flashH;
int i, j, offset;
int topline = virtscr[0].topline;
// Remove the flash light first if it was previously drawn
if (_flashlightIsDrawn) {
@ -667,7 +666,7 @@ void Scumm::drawFlashlight()
}
byte *bgbak;
offset = (flashY - topline) * _realWidth + virtscr[0].xstart + flashX * 8;
offset = flashY * _realWidth + virtscr[0].xstart + flashX * 8;
flashBuffer = virtscr[0].screenPtr + offset;
bgbak = getResourceAddress(rtBuffer, 5) + offset;