diff options
author | Max Horn | 2003-05-10 23:47:39 +0000 |
---|---|---|
committer | Max Horn | 2003-05-10 23:47:39 +0000 |
commit | bf270d92432e44648d93598b8153b094e16ece3e (patch) | |
tree | bd540eaf3f2a91bb18455548fb2603cd5eefe38d /scumm/scummvm.cpp | |
parent | 5be0ce7adc9952ff065c7ec04cab4b87eb7b0e28 (diff) | |
download | scummvm-rg350-bf270d92432e44648d93598b8153b094e16ece3e.tar.gz scummvm-rg350-bf270d92432e44648d93598b8153b094e16ece3e.tar.bz2 scummvm-rg350-bf270d92432e44648d93598b8153b094e16ece3e.zip |
walkbox & putActor coords in V2 are in 'character coordinates' - x has to multiplied by 8 and y by 2
svn-id: r7426
Diffstat (limited to 'scumm/scummvm.cpp')
-rw-r--r-- | scumm/scummvm.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 0e90b8945b..b3e2ea31fc 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -884,9 +884,12 @@ int Scumm::scummLoop(int delta) { VAR(VAR_CAMERA_POS_X) = camera._cur.x; } VAR(VAR_HAVE_MSG) = (_haveMsg == 0xFE) ? 0xFF : _haveMsg; - VAR(VAR_VIRT_MOUSE_X) = _virtual_mouse_x; - VAR(VAR_VIRT_MOUSE_Y) = _virtual_mouse_y; - if (!(_features & GF_AFTER_V2)) { + if (_features & GF_AFTER_V2) { + VAR(VAR_VIRT_MOUSE_X) = _virtual_mouse_x; + VAR(VAR_VIRT_MOUSE_Y) = _virtual_mouse_y; + } else { + VAR(VAR_VIRT_MOUSE_X) = _virtual_mouse_x; + VAR(VAR_VIRT_MOUSE_Y) = _virtual_mouse_y; VAR(VAR_MOUSE_X) = mouse.x; VAR(VAR_MOUSE_Y) = mouse.y; VAR(VAR_DEBUGMODE) = _debugMode; |