aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2008-07-28 09:00:00 +0000
committerNicola Mettifogo2008-07-28 09:00:00 +0000
commit5d2e25ee11f15fd36173ce548f4ea06a80054680 (patch)
tree371a9d4761a1fb5502edb47a806ef6cea8f7f549 /engines
parentc6cbf1f144110ab2d754e42032036018768ef9ff (diff)
downloadscummvm-rg350-5d2e25ee11f15fd36173ce548f4ea06a80054680.tar.gz
scummvm-rg350-5d2e25ee11f15fd36173ce548f4ea06a80054680.tar.bz2
scummvm-rg350-5d2e25ee11f15fd36173ce548f4ea06a80054680.zip
Preliminary code for traps.
svn-id: r33364
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/objects.h1
-rw-r--r--engines/parallaction/parser_ns.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/engines/parallaction/objects.h b/engines/parallaction/objects.h
index 813f83d183..de740a631e 100644
--- a/engines/parallaction/objects.h
+++ b/engines/parallaction/objects.h
@@ -93,6 +93,7 @@ enum ZoneFlags {
kFlagsYourself = 0x1000,
kFlagsScaled = 0x2000,
kFlagsSelfuse = 0x4000,
+ kFlagsIsAnimation = 0x1000000, // BRA: used in walk code (trap check), to tell is a Zone is an Animation
kFlagsAnimLinked = 0x2000000
};
diff --git a/engines/parallaction/parser_ns.cpp b/engines/parallaction/parser_ns.cpp
index b06eccc81c..88de7bc5f1 100644
--- a/engines/parallaction/parser_ns.cpp
+++ b/engines/parallaction/parser_ns.cpp
@@ -299,6 +299,7 @@ void LocationParser_ns::parseAnimation(AnimationList &list, char *name) {
AnimationPtr a(new Animation);
strncpy(a->_name, name, ZONENAME_LENGTH);
+ a->_flags |= kFlagsIsAnimation;
list.push_front(AnimationPtr(a));