From 613642efd01b0c4bbbdc167cc85abdc5e4fde549 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Fri, 16 Jul 2004 06:57:47 +0000 Subject: Open the control panel on both F5 and ESC, like the original did. svn-id: r14222 --- sword1/sword1.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sword1') diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp index b29ad6f09b..0981dbce21 100644 --- a/sword1/sword1.cpp +++ b/sword1/sword1.cpp @@ -1196,7 +1196,10 @@ uint8 SwordEngine::mainLoop(void) { if (_systemVars.forceRestart) retCode = CONTROL_RESTART_GAME; - else if (((_keyPressed == 63) && (Logic::_scriptVars[MOUSE_STATUS] & 1)) || (_systemVars.deathScreenFlag)) { + + // The control panel is triggered by F5 or ESC. + // FIXME: This is a very strange way of detecting F5... + else if (((_keyPressed == 63 || _keyPressed == 27) && (Logic::_scriptVars[MOUSE_STATUS] & 1)) || (_systemVars.deathScreenFlag)) { retCode = _control->runPanel(); if (!retCode) _screen->fullRefresh(); -- cgit v1.2.3