aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-05-24 21:33:54 +0000
committerMax Horn2003-05-24 21:33:54 +0000
commit41a9cd8ac4f6f70d8957cb845a55c3104cc57575 (patch)
tree5f1a0a7014cbd2535334818449c515619d38099e /scumm
parent0768f103ea820e3d24787ef95906a2e44559456a (diff)
downloadscummvm-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.cpp6
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;