Run AGIMOUSE hack as a side effect always

svn-id: r41536
This commit is contained in:
Eugene Sandulenko 2009-06-15 07:06:52 +00:00
parent d7308e9e3d
commit 8bcdd8d7f6
2 changed files with 5 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;