diff options
author | Nicola Mettifogo | 2008-07-25 02:37:55 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-07-25 02:37:55 +0000 |
commit | d1a6b175f5ef7f64435477775015730657195a11 (patch) | |
tree | c9ee97ce4ba6026a7885d9965a45810af499db38 /engines/parallaction/parallaction_ns.cpp | |
parent | 6b2337740ecdce2bcc7053568c5b232845be75ff (diff) | |
download | scummvm-rg350-d1a6b175f5ef7f64435477775015730657195a11.tar.gz scummvm-rg350-d1a6b175f5ef7f64435477775015730657195a11.tar.bz2 scummvm-rg350-d1a6b175f5ef7f64435477775015730657195a11.zip |
* Merged old input management flags into a single mouse status variable.
* Mouse is now displayed when it is needed, and hidden when it is not ;)
svn-id: r33270
Diffstat (limited to 'engines/parallaction/parallaction_ns.cpp')
-rw-r--r-- | engines/parallaction/parallaction_ns.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/parallaction/parallaction_ns.cpp b/engines/parallaction/parallaction_ns.cpp index cf5cf2cd73..e8aa32dea7 100644 --- a/engines/parallaction/parallaction_ns.cpp +++ b/engines/parallaction/parallaction_ns.cpp @@ -195,8 +195,6 @@ void Parallaction_ns::setArrowCursor() { _input->_activeItem._id = 0; _system->setMouseCursor(_mouseArrow, MOUSEARROW_WIDTH, MOUSEARROW_HEIGHT, 0, 0, 0); - _system->showMouse(true); - } void Parallaction_ns::setInventoryCursor(int pos) { @@ -291,6 +289,9 @@ void Parallaction_ns::runPendingZones() { void Parallaction_ns::changeLocation(char *location) { debugC(1, kDebugExec, "changeLocation(%s)", location); + MouseTriState oldMouseState = _input->getMouseState(); + _input->setMouseState(MOUSE_DISABLED); + _soundMan->playLocationMusic(location); _input->stopHovering(); @@ -298,9 +299,7 @@ void Parallaction_ns::changeLocation(char *location) { _zoneTrap = nullZonePtr; - if (_engineFlags & kEngineBlockInput) { - setArrowCursor(); - } + setArrowCursor(); _gfx->showGfxObj(_char._ani->gfxobj, false); _location._animations.remove(_char._ani); @@ -360,10 +359,9 @@ void Parallaction_ns::changeLocation(char *location) { if (_location._hasSound) _soundMan->playSfx(_location._soundFile, 0, true); - debugC(1, kDebugExec, "changeLocation() done"); - - return; + _input->setMouseState(oldMouseState); + debugC(1, kDebugExec, "changeLocation() done"); } |