From 5fa83a26e642038806fe2536f5694ae783ec57cf Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sun, 29 Mar 2009 14:09:24 +0000 Subject: Implemented IFCHAR command. This makes part 3 of BRA completely explorable. svn-id: r39742 --- engines/parallaction/parser_br.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/parallaction') diff --git a/engines/parallaction/parser_br.cpp b/engines/parallaction/parser_br.cpp index 8bb034986b..57153e0aec 100644 --- a/engines/parallaction/parser_br.cpp +++ b/engines/parallaction/parser_br.cpp @@ -447,7 +447,9 @@ DECLARE_LOCATION_PARSER(character) { DECLARE_LOCATION_PARSER(ifchar) { debugC(7, kDebugParser, "LOCATION_PARSER(ifchar) "); - _script->skip("ENDIF"); + if (scumm_stricmp(_vm->_char.getName(), _tokens[1])) { + _script->skip("ENDIF"); + } } -- cgit v1.2.3