aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-15 07:06:52 +0000
committerEugene Sandulenko2009-06-15 07:06:52 +0000
commit8bcdd8d7f65a784c11f640e79ba5bc413e1bf91f (patch)
tree6e18d82afb30256069a7092b4553fc11ef993a99 /engines
parentd7308e9e3d678ff3052137d0e869f8ac85f30adc (diff)
downloadscummvm-rg350-8bcdd8d7f65a784c11f640e79ba5bc413e1bf91f.tar.gz
scummvm-rg350-8bcdd8d7f65a784c11f640e79ba5bc413e1bf91f.tar.bz2
scummvm-rg350-8bcdd8d7f65a784c11f640e79ba5bc413e1bf91f.zip
Run AGIMOUSE hack as a side effect always
svn-id: r41536
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/cycle.cpp4
-rw-r--r--engines/agi/op_cmd.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp
index aef236ce64..bf4622bc08 100644
--- a/engines/agi/cycle.cpp
+++ b/engines/agi/cycle.cpp
@@ -198,7 +198,9 @@ int AgiEngine::mainCycle() {
// In AGI Mouse emulation mode we must update the mouse-related
// vars in every interpreter cycle.
- if (getFeatures() & GF_AGIMOUSE) {
+ //
+ // We run AGIMOUSE always as a side effect
+ if (getFeatures() & GF_AGIMOUSE || 1) {
_game.vars[28] = g_mouse.x / 2;
_game.vars[29] = g_mouse.y;
}
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp
index a620788de2..97255097bc 100644
--- a/engines/agi/op_cmd.cpp
+++ b/engines/agi/op_cmd.cpp
@@ -1520,7 +1520,8 @@ cmd(print_at_v) {
}
cmd(push_script) {
- if (g_agi->getFeatures() & GF_AGIMOUSE) {
+ // We run AGIMOUSE always as a side effect
+ if (g_agi->getFeatures() & GF_AGIMOUSE || 1) {
game.vars[27] = g_mouse.button;
game.vars[28] = g_mouse.x / 2;
game.vars[29] = g_mouse.y;