Extern the global tag groups properly.

This commit is contained in:
Nev3r 2020-11-12 12:25:02 +01:00
parent a931d09e7d
commit a8f554075f
2 changed files with 7 additions and 3 deletions

View File

@ -15,6 +15,10 @@
#include "z_zone.h"
#include "r_data.h"
taggroup_t* tags_sectors[MAXTAGS + 1];
taggroup_t* tags_lines[MAXTAGS + 1];
taggroup_t* tags_mapthings[MAXTAGS + 1];
void Tag_Add (taglist_t* list, const mtag_t tag)
{
list->tags = Z_Realloc(list->tags, (list->count + 1) * sizeof(list->tags), PU_LEVEL, NULL);

View File

@ -44,9 +44,9 @@ typedef struct
size_t count;
} taggroup_t;
taggroup_t* tags_sectors[MAXTAGS + 1];
taggroup_t* tags_lines[MAXTAGS + 1];
taggroup_t* tags_mapthings[MAXTAGS + 1];
extern taggroup_t* tags_sectors[];
extern taggroup_t* tags_lines[];
extern taggroup_t* tags_mapthings[];
void Taggroup_Add (taggroup_t *garray[], const mtag_t tag, size_t id);
void Taggroup_Remove (taggroup_t *garray[], const mtag_t tag, size_t id);