From 96008280ad80710a2e2bd0faec69f9786cdd1ab3 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 23 Dec 2016 19:55:07 +0100 Subject: Prefix team values, don't prefix values starting with "global_". --- src/mapcat.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit