diff options
author | Max Horn | 2003-05-24 21:33:54 +0000 |
---|---|---|
committer | Max Horn | 2003-05-24 21:33:54 +0000 |
commit | 41a9cd8ac4f6f70d8957cb845a55c3104cc57575 (patch) | |
tree | 5f1a0a7014cbd2535334818449c515619d38099e /scumm | |
parent | 0768f103ea820e3d24787ef95906a2e44559456a (diff) | |
download | scummvm-rg350-41a9cd8ac4f6f70d8957cb845a55c3104cc57575.tar.gz scummvm-rg350-41a9cd8ac4f6f70d8957cb845a55c3104cc57575.tar.bz2 scummvm-rg350-41a9cd8ac4f6f70d8957cb845a55c3104cc57575.zip |
fixed flashlight oddities in Zak256
svn-id: r7904
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/gfx.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 70fa66f8ae..3be2a74c8a 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -661,9 +661,9 @@ void Scumm::drawFlashlight() { return; // Calculate the area of the flashlight - if (_gameId == GID_ZAK256) { - x = _virtualMouse.x; - y = _virtualMouse.y; + if (_gameId == GID_ZAK256 || _gameId == GID_ZAK) { + x = _mouse.x + virtscr[0].xstart; + y = _mouse.y - virtscr[0].topline; } else { Actor *a = derefActor(VAR(VAR_EGO), "drawFlashlight"); x = a->x; |