ZVISION: Implement the Venus hint system in Zork: Nemesis

This commit is contained in:
Filippos Karapetis
2014-12-22 00:30:26 +02:00
parent 99087c7f45
commit dfae161386
+5
View File
@@ -145,6 +145,11 @@ void ZVision::cheatCodes(uint8 key) {
getBufferedKey(2),
getBufferedKey(1),
getBufferedKey(0), 0);
// Show the Venus screen when "?" or "/" is pressed while inside the temple world
if (_scriptManager->getStateValue(StateKey_VenusEnable) == 1)
if ((checkCode("?") || checkCode("/")) && _scriptManager->getStateValue(StateKey_World) == 't')
_scriptManager->changeLocation('g', 'j', 'h', 'e', 0);
}
void ZVision::processEvents() {