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/common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 0413001..dd892ff 100644 --- a/src/common.h +++ b/src/common.h @@ -112,6 +112,8 @@ typedef struct { typedef struct { char *classname; + bool discard; + brush_t *brushes; entity_key_t *keys; @@ -132,6 +134,6 @@ void map_init(map_t *map); void map_free(map_t *map); int map_read(map_t *map, const char *path); int map_write(const map_t *map, const char *path); -int map_postprocess(map_t *map, bool filter_team_ents); +int map_postprocess(map_t *map); int map_merge(map_t *master, map_t *slave); void map_print_stats(const char *path, const map_t *map); -- cgit