diff options
author | Vladimir Menshakov | 2009-11-17 07:35:57 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-11-17 07:35:57 +0000 |
commit | 61ed19f89259ecdaa828153a8d8b5272c37f6add (patch) | |
tree | de6bb826ca125d5e0c8f6cce2062d31f896d62c2 /engines/teenagent/scene.cpp | |
parent | 4ce5d81a4d8fcd8a23e2db99f192887cb3922fa9 (diff) | |
download | scummvm-rg350-61ed19f89259ecdaa828153a8d8b5272c37f6add.tar.gz scummvm-rg350-61ed19f89259ecdaa828153a8d8b5272c37f6add.tar.bz2 scummvm-rg350-61ed19f89259ecdaa828153a8d8b5272c37f6add.zip |
debug walkbox displaying by ctrl-5
svn-id: r45945
Diffstat (limited to 'engines/teenagent/scene.cpp')
-rw-r--r-- | engines/teenagent/scene.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 9b3c8ef211..87e96cfaa5 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -513,10 +513,17 @@ bool Scene::processEvent(const Common::Event &event) { case '2': case '3': case '4': + case '5': + case '6': + case '7': + case '8': + case '9': if (event.kbd.flags & Common::KBD_CTRL) { uint feature = event.kbd.keycode - '1'; - debug_features.feature[feature] = !debug_features.feature[feature]; - debug(0, "switched feature %u %s", feature, debug_features.feature[feature] ? "on": "off"); + if (feature < DebugFeatures::kMax) { + debug_features.feature[feature] = !debug_features.feature[feature]; + debug(0, "switched feature %u %s", feature, debug_features.feature[feature] ? "on": "off"); + } } break; default: @@ -717,11 +724,10 @@ bool Scene::render(OSystem *system) { } } -#if 0 //if (!current_event.empty()) // current_event.dump(); - { + if (!debug_features.feature[DebugFeatures::kHidePath]) { const Common::Array<Walkbox> & scene_walkboxes = walkboxes[_id - 1]; for (uint i = 0; i < scene_walkboxes.size(); ++i) { scene_walkboxes[i].rect.render(surface, 0xd0 + i); @@ -738,7 +744,6 @@ bool Scene::render(OSystem *system) { last_p = *p; } } -#endif system->unlockScreen(); |