Ticket #9184: 0009-correctly-parse-animations-of-type-none.txt

File 0009-correctly-parse-animations-of-type-none.txt, 997 bytes (added by fuzzie, 14 years ago)
Line 
1From 8ae8a3aff446b5654db50b9c32a6c9a0db5b9103 Mon Sep 17 00:00:00 2001
2From: Alyssa Milburn <fuzzie@fuzzie.org>
3Date: Fri, 21 May 2010 16:46:10 +0200
4Subject: [PATCH] correctly parse animations of type none
5
6---
7 engines/parallaction/parser_ns.cpp | 6 +++---
8 1 files changed, 3 insertions(+), 3 deletions(-)
9
10diff --git a/engines/parallaction/parser_ns.cpp b/engines/parallaction/parser_ns.cpp
11index ff24a06..f5de38c 100644
12--- a/engines/parallaction/parser_ns.cpp
13+++ b/engines/parallaction/parser_ns.cpp
14@@ -212,13 +212,13 @@ DECLARE_ANIM_PARSER(type) {
15 debugC(7, kDebugParser, "ANIM_PARSER(type) ");
16
17 ctxt.a->_type = buildZoneType(_tokens[1], _tokens[2]);
18- if ((ACTIONTYPE(ctxt.a) != 0) && (ACTIONTYPE(ctxt.a) != kZoneCommand)) {
19+ if ((ACTIONTYPE(ctxt.a) != 0) && (ACTIONTYPE(ctxt.a) != kZoneCommand) && (ACTIONTYPE(ctxt.a) != kZoneNone)) {
20 parseZoneTypeBlock(ctxt.a);
21+
22+ _parser->popTables();
23 }
24
25 ctxt.a->_flags |= 0x1000000;
26-
27- _parser->popTables();
28 }
29
30
31--
321.6.3.3
33