diff options
author | Max Horn | 2003-06-27 13:23:01 +0000 |
---|---|---|
committer | Max Horn | 2003-06-27 13:23:01 +0000 |
commit | 9218b70b0c440c1a75cc2e6af125dca28da91912 (patch) | |
tree | 7b03136502bab9f052353d6e717c8cda42707dfd /sky/control.cpp | |
parent | ca0ebf3aef1ecdac8124a88eff1529416d3fda54 (diff) | |
download | scummvm-rg350-9218b70b0c440c1a75cc2e6af125dca28da91912.tar.gz scummvm-rg350-9218b70b0c440c1a75cc2e6af125dca28da91912.tar.bz2 scummvm-rg350-9218b70b0c440c1a75cc2e6af125dca28da91912.zip |
fixed warnings
svn-id: r8669
Diffstat (limited to 'sky/control.cpp')
-rw-r--r-- | sky/control.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/sky/control.cpp b/sky/control.cpp index 7a2e5cc9be..4f2a1249ad 100644 --- a/sky/control.cpp +++ b/sky/control.cpp @@ -427,10 +427,13 @@ uint16 SkyControl::handleClick(SkyConResource *pButton) { bool SkyControl::getYesNo(void) { - _yesNo->drawToScreen(WITH_MASK); - bool retVal; bool quitPanel = false; + bool retVal = false; + bool quitPanel = false; uint8 mouseType = MOUSE_NORMAL; uint8 wantMouse = MOUSE_NORMAL; + + _yesNo->drawToScreen(WITH_MASK); + while (!quitPanel) { if (mouseType != wantMouse) { mouseType = wantMouse; @@ -442,15 +445,19 @@ bool SkyControl::getYesNo(void) { if ((_mouseX >= 77) && (_mouseX <= 114)) { // over 'yes' wantMouse = MOUSE_CROSS; if (_mouseClicked) { - quitPanel = true; retVal = true; + quitPanel = true; + retVal = true; } } else if ((_mouseX >= 156) && (_mouseX <= 193)) { // over 'no' wantMouse = MOUSE_CROSS; if (_mouseClicked) { - quitPanel = true; retVal = false; + quitPanel = true; + retVal = false; } - } else wantMouse = MOUSE_NORMAL; - } else wantMouse = MOUSE_NORMAL; + } else + wantMouse = MOUSE_NORMAL; + } else + wantMouse = MOUSE_NORMAL; } return retVal; } |