Ticket #9176: 0001-increment-zone-animation-indexes-even-if-we-re-skipp.patch

File 0001-increment-zone-animation-indexes-even-if-we-re-skipp.patch, 1.0 KB (added by fuzzie, 15 years ago)
  • engines/parallaction/parser_ns.cpp

    From 0df0e8846ad214f868852e54d00c4b8600a21991 Mon Sep 17 00:00:00 2001
    From: Alyssa Milburn <fuzzie@fuzzie.org>
    Date: Wed, 19 May 2010 13:21:15 +0200
    Subject: [PATCH] increment zone/animation indexes even if we're skipping a definition
    
    ---
     engines/parallaction/parser_ns.cpp |    2 ++
     1 files changed, 2 insertions(+), 0 deletions(-)
    
    diff --git a/engines/parallaction/parser_ns.cpp b/engines/parallaction/parser_ns.cpp
    index be72cf7..ff24a06 100644
    a b void LocationParser_ns::parseAnimation(AnimationList &list, char *name) {  
    286286        debugC(5, kDebugParser, "parseAnimation(name: %s)", name);
    287287
    288288        if (_vm->_location.findAnimation(name)) {
     289                _zoneProg++;
    289290                _script->skip("endanimation");
    290291                return;
    291292        }
    void LocationParser_ns::parseZone(ZoneList &list, char *name) {  
    13051306        debugC(5, kDebugParser, "parseZone(name: %s)", name);
    13061307
    13071308        if (_vm->_location.findZone(name)) {
     1309                _zoneProg++;
    13081310                _script->skip("endzone");
    13091311                return;
    13101312        }