aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sword1/sword1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp
index 61ab835da6..94216d8584 100644
--- a/engines/sword1/sword1.cpp
+++ b/engines/sword1/sword1.cpp
@@ -670,7 +670,7 @@ uint8 SwordEngine::mainLoop(void) {
else if (((_keyPressed.keycode == Common::KEYCODE_F5 || _keyPressed.keycode == Common::KEYCODE_ESCAPE)
&& (Logic::_scriptVars[MOUSE_STATUS] & 1)) || (_systemVars.controlPanelMode)) {
retCode = _control->runPanel();
- if (!retCode)
+ if (retCode == CONTROL_NOTHING_DONE)
_screen->fullRefresh();
}
_mouseState = 0;