mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
Extern the global tag groups properly.
This commit is contained in:
parent
a931d09e7d
commit
a8f554075f
2 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue