Skip to content
Snippets Groups Projects
Commit a8f55407 authored by Nev3r's avatar Nev3r
Browse files

Extern the global tag groups properly.

parent a931d09e
Branches
No related tags found
No related merge requests found
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
#include "z_zone.h" #include "z_zone.h"
#include "r_data.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) 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); list->tags = Z_Realloc(list->tags, (list->count + 1) * sizeof(list->tags), PU_LEVEL, NULL);
......
...@@ -44,9 +44,9 @@ typedef struct ...@@ -44,9 +44,9 @@ typedef struct
size_t count; size_t count;
} taggroup_t; } taggroup_t;
taggroup_t* tags_sectors[MAXTAGS + 1]; extern taggroup_t* tags_sectors[];
taggroup_t* tags_lines[MAXTAGS + 1]; extern taggroup_t* tags_lines[];
taggroup_t* tags_mapthings[MAXTAGS + 1]; extern taggroup_t* tags_mapthings[];
void Taggroup_Add (taggroup_t *garray[], const mtag_t tag, size_t id); 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); void Taggroup_Remove (taggroup_t *garray[], const mtag_t tag, size_t id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment