diff --git a/src/taglist.c b/src/taglist.c index 99d23bf5f..1849c314c 100644 --- a/src/taglist.c +++ b/src/taglist.c @@ -111,6 +111,12 @@ static void Taglist_AddToMapthings (const mtag_t tag, const size_t itemid) tagelems->elements[tagelems->count - 1] = itemid; } +void Tag_SectorFSet (const size_t id, const mtag_t tag) +{ + sector_t* sec = §ors[id]; + Tag_FSet(&sec->tags, tag); +} + void Taglist_InitGlobalTables(void) { size_t i, j; diff --git a/src/taglist.h b/src/taglist.h index b14c316ff..050bebed7 100644 --- a/src/taglist.h +++ b/src/taglist.h @@ -23,6 +23,8 @@ boolean Tag_Share (const taglist_t* list1, const taglist_t* list2); boolean Tag_Compare (const taglist_t* list1, const taglist_t* list2); +void Tag_SectorFSet (const size_t id, const mtag_t tag); + typedef struct { size_t *elements;