summaryrefslogtreecommitdiff
path: root/src/common.h
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/common.h
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/common.h')
-rw-r--r--src/common.h4
1 files changed, 3 insertions, 1 deletions
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);