aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2004-08-29 06:40:03 +0000
committerTravis Howell2004-08-29 06:40:03 +0000
commit3540014e4590941f39c5975ce072f489f467edd7 (patch)
treedbf6dcceb0c7931ce52c658922136291ee43e65c
parent9046906d797655c7bb12f137931634186468bc2b (diff)
downloadscummvm-rg350-3540014e4590941f39c5975ce072f489f467edd7.tar.gz
scummvm-rg350-3540014e4590941f39c5975ce072f489f467edd7.tar.bz2
scummvm-rg350-3540014e4590941f39c5975ce072f489f467edd7.zip
Later HE 7.1 games need to send virtual x/y mouse vars.
svn-id: r14826
-rw-r--r--scumm/script.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 8dae889123..f7995e68f8 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -1004,6 +1004,11 @@ void ScummEngine::runInputScript(int a, int cmd, int mode) {
args[0] = a;
args[1] = cmd;
args[2] = mode;
+ // All HE 72+ games but only some HE 71 games.
+ if (_heversion >= 71) {
+ args[3] = VAR(VAR_VIRT_MOUSE_X);
+ args[4] = VAR(VAR_VIRT_MOUSE_Y);
+ }
if (verbScript)
runScript(verbScript, 0, 0, args);
}