From 8b4f0249e7f324cfa5d4f3a21df8efb4c3850ef9 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 24 Dec 2016 15:46:13 +0100 Subject: Improve entity discarding. Instead of discarding all team_* and info_* entities from all maps but the iirst one, discard all entities with the "mapcat_discard" key. --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 4778b51..30c5d15 100644 --- a/src/main.c +++ b/src/main.c @@ -118,8 +118,7 @@ int main(int argc, char **argv) goto out; } - // team_* and info_* ents are kept only in the first part - if (map_postprocess(&part, (input != inputs))) { + if (map_postprocess(&part)) { map_free(&map); map_free(&part); goto out; -- cgit