summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2016-12-24 15:46:13 +0100
committerPaweł Redman <pawel.redman@gmail.com>2016-12-24 15:46:13 +0100
commit8b4f0249e7f324cfa5d4f3a21df8efb4c3850ef9 (patch)
treec5fecd0dd6ed875f39fc58c4b1daed8aa8b3d526 /src/main.c
parentfde7b92187b90c749d2ff8d0bf6cafb7b809317c (diff)
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.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
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;