diff options
Diffstat (limited to 'engines/draci/draci.cpp')
-rw-r--r-- | engines/draci/draci.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp index b2b0083c22..1e7b292229 100644 --- a/engines/draci/draci.cpp +++ b/engines/draci/draci.cpp @@ -171,6 +171,7 @@ int DraciEngine::go() { Common::Event event; bool quit = false; + bool showWalkingMap = false; while (!quit) { while (_eventMan->pollEvent(event)) { switch (event.type) { @@ -182,7 +183,17 @@ int DraciEngine::go() { _game->changeRoom(_game->nextRoomNum()); else if (event.kbd.keycode == Common::KEYCODE_LEFT) _game->changeRoom(_game->prevRoomNum()); - break; + else if (event.kbd.keycode == Common::KEYCODE_w) { // Show walking map toggle + // Toggle + showWalkingMap = !showWalkingMap; + + if (showWalkingMap) { + _anims->play(-2); + } else { + _anims->stop(-2); + } + } + break; default: _mouse->handleEvent(event); } |