aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/console.cpp1
-rw-r--r--engines/mohawk/myst.cpp5
-rw-r--r--engines/mohawk/myst.h3
3 files changed, 3 insertions, 6 deletions
diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp
index 9b5bae78be..629cfdf306 100644
--- a/engines/mohawk/console.cpp
+++ b/engines/mohawk/console.cpp
@@ -63,6 +63,7 @@ MystConsole::MystConsole(MohawkEngine_Myst *vm) : GUI::Debugger(), _vm(vm) {
registerCmd("disableInitOpcodes", WRAP_METHOD(MystConsole, Cmd_DisableInitOpcodes));
registerCmd("cache", WRAP_METHOD(MystConsole, Cmd_Cache));
registerCmd("resources", WRAP_METHOD(MystConsole, Cmd_Resources));
+ registerVar("show_resource_rects", &_vm->_showResourceRects);
}
MystConsole::~MystConsole() {
diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp
index 9ee2cafddf..7f38a8601c 100644
--- a/engines/mohawk/myst.cpp
+++ b/engines/mohawk/myst.cpp
@@ -303,11 +303,6 @@ Common::Error MohawkEngine_Myst::run() {
case Common::KEYCODE_SPACE:
pauseGame();
break;
- case Common::KEYCODE_F4:
- _showResourceRects = !_showResourceRects;
- if (_showResourceRects)
- drawResourceRects();
- break;
case Common::KEYCODE_F5:
_needsPageDrop = false;
_needsShowMap = false;
diff --git a/engines/mohawk/myst.h b/engines/mohawk/myst.h
index 34607d8329..37e0eafb98 100644
--- a/engines/mohawk/myst.h
+++ b/engines/mohawk/myst.h
@@ -189,6 +189,8 @@ public:
bool _needsShowMap;
bool _needsShowDemoMenu;
+ bool _showResourceRects;
+
MystGraphics *_gfx;
MystGameState *_gameState;
MystScriptParser *_scriptParser;
@@ -228,7 +230,6 @@ private:
uint16 _curCard;
MystView _view;
- bool _showResourceRects;
bool _runExitScript;
void dropPage();