summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2016-12-23 19:55:07 +0100
committerPaweł Redman <pawel.redman@gmail.com>2016-12-23 19:55:07 +0100
commit96008280ad80710a2e2bd0faec69f9786cdd1ab3 (patch)
treedd933effe7788390d33f15ca1795fe31301f0471
parentdc661663025f1a3ed115f32ad97f3afb2c7af304 (diff)
Prefix team values, don't prefix values starting with "global_".
-rw-r--r--src/mapcat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mapcat.c b/src/mapcat.c
index 12a464c..54bed98 100644
--- a/src/mapcat.c
+++ b/src/mapcat.c
@@ -672,7 +672,11 @@ int map_postprocess(map_t *map, bool filter_team_ents)
size_t value_len;
if (strcmp(key->key, "target") &&
- strcmp(key->key, "targetname"))
+ strcmp(key->key, "targetname") &&
+ strcmp(key->key, "team"))
+ continue;
+
+ if (!strncmp(key->value, "global_", 7))
continue;
value_len = strlen(key->value);