diff options
author | Robert Göffringmann | 2003-08-04 01:16:11 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-08-04 01:16:11 +0000 |
commit | 7e3d4b34f2e338f2f3fb8019a820d16547130179 (patch) | |
tree | 1e545675a1330d91c6792e4a00806472f552e39b /sky | |
parent | 00861f884141e73a024d1cac57e25c0f16115bd2 (diff) | |
download | scummvm-rg350-7e3d4b34f2e338f2f3fb8019a820d16547130179.tar.gz scummvm-rg350-7e3d4b34f2e338f2f3fb8019a820d16547130179.tar.bz2 scummvm-rg350-7e3d4b34f2e338f2f3fb8019a820d16547130179.zip |
fixed dialog skipping
svn-id: r9447
Diffstat (limited to 'sky')
-rw-r--r-- | sky/mouse.cpp | 9 | ||||
-rw-r--r-- | sky/mouse.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/sky/mouse.cpp b/sky/mouse.cpp index 5b718e8d88..e9cc995633 100644 --- a/sky/mouse.cpp +++ b/sky/mouse.cpp @@ -313,3 +313,12 @@ void SkyMouse::fnOpenCloseHand(bool open) { spriteMouse(0, 5, 5); } +bool SkyMouse::wasClicked(void) { + + if (_logicClick) { + _logicClick = false; + return true; + } else + return false; +} + diff --git a/sky/mouse.h b/sky/mouse.h index 0f86e166ab..2d18b77eaa 100644 --- a/sky/mouse.h +++ b/sky/mouse.h @@ -53,7 +53,7 @@ public: uint16 giveMouseX(void) { return _mouseX; }; uint16 giveMouseY(void) { return _mouseY; }; uint16 giveCurrentMouseType(void) { return _currentCursor; }; - bool wasClicked(void) { return _logicClick; _logicClick = false; }; + bool wasClicked(void); void logicClick(void) { _logicClick = true; }; protected: |