aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2008-11-12 07:08:43 +0000
committerNicola Mettifogo2008-11-12 07:08:43 +0000
commit181a44fc21b0627d2cf247fdb7a31e0f8eedecb6 (patch)
tree9b0ae863fc6f1de91ce8cfc7892949528233542d /engines
parentc36a8c1c727f8e44eaaa90217d94d28eb1ed0377 (diff)
downloadscummvm-rg350-181a44fc21b0627d2cf247fdb7a31e0f8eedecb6.tar.gz
scummvm-rg350-181a44fc21b0627d2cf247fdb7a31e0f8eedecb6.tar.bz2
scummvm-rg350-181a44fc21b0627d2cf247fdb7a31e0f8eedecb6.zip
Fixed default zone flags, so that labels in BRA are only shown on zones which have one.
svn-id: r35012
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/objects.cpp2
-rw-r--r--engines/parallaction/parser_ns.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/engines/parallaction/objects.cpp b/engines/parallaction/objects.cpp
index b4776250c6..54a5c6c533 100644
--- a/engines/parallaction/objects.cpp
+++ b/engines/parallaction/objects.cpp
@@ -158,8 +158,8 @@ Zone::Zone() {
_left = _top = _right = _bottom = 0;
_type = 0;
- _flags = 0;
+ _flags = kFlagsNoName;
_label = 0;
// BRA specific
diff --git a/engines/parallaction/parser_ns.cpp b/engines/parallaction/parser_ns.cpp
index 01df9d67f6..7864df917d 100644
--- a/engines/parallaction/parser_ns.cpp
+++ b/engines/parallaction/parser_ns.cpp
@@ -1350,6 +1350,7 @@ DECLARE_ZONE_PARSER(label) {
// printf("label: %s", _tokens[1]);
ctxt.z->_label = _vm->_gfx->renderFloatingLabel(_vm->_labelFont, _tokens[1]);
+ ctxt.z->_flags &= ~kFlagsNoName;
}