mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
add Tag_Compare()
This commit is contained in:
parent
60eb77838c
commit
9ce0275a71
2 changed files with 15 additions and 0 deletions
|
|
@ -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__
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue