aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-12-28 03:25:38 +0100
committerThierry Crozat2018-01-23 02:15:45 +0000
commit1fd7ea7c390617ed525cb87884735119b7bef37e (patch)
tree95c855c2b0b7bf52dc673d4377a8fa6f8395a31e /engines
parentf3f75da959ff4ce33fa6a5b542518d71198158dc (diff)
downloadscummvm-rg350-1fd7ea7c390617ed525cb87884735119b7bef37e.tar.gz
scummvm-rg350-1fd7ea7c390617ed525cb87884735119b7bef37e.tar.bz2
scummvm-rg350-1fd7ea7c390617ed525cb87884735119b7bef37e.zip
SUPERNOVA: Fixes object state update
In order to trigger a mouseField change in processInput(), we move the cursor to 0,0 first before restoring its original position.
Diffstat (limited to 'engines')
-rw-r--r--engines/supernova/state.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index 9392dd5b02..2330f52773 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -2253,6 +2253,9 @@ void GameManager::executeRoom() {
if (_mouseClicked) {
Common::Event event;
event.type = Common::EVENT_MOUSEMOVE;
+ event.mouse = Common::Point(0, 0);
+ _vm->getEventManager()->pushEvent(event);
+ event.type = Common::EVENT_MOUSEMOVE;
event.mouse = Common::Point(_mouseX, _mouseY);
_vm->getEventManager()->pushEvent(event);
}