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:
parent
0b3e4323f0
commit
e901190863
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue