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

add Tag_Compare()

parent ab2619d5
No related branches found
No related tags found
1 merge request!1097UDMF: Multitag support
......@@ -6,3 +6,17 @@ void Tag_Add (taglist_t* list, const UINT16 tag)
list->tags = Z_Realloc(list->tags, (list->count + 1) * sizeof(list->tags), PU_LEVEL, NULL);
list->tags[list->count++] = tag;
}
boolean Tag_Compare (const taglist_t* list1, const taglist_t* list2)
{
size_t i;
if (list1->count != list2->count)
return false;
for (i = 0; i < list1->count; i++)
if (list1->tags[i] != list2->tags[i])
return false;
return true;
}
......@@ -11,4 +11,5 @@ typedef struct
} taglist_t;
void Tag_Add (taglist_t* list, const UINT16 tag);
boolean Tag_Compare (const taglist_t* list1, const taglist_t* list2);
#endif //__R_TAGLIST__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment