mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Check if existing animdefs have the same type as the animdef we're parsing
This commit is contained in:
parent
e3f627120f
commit
0eaebb16fc
1 changed files with 2 additions and 1 deletions
|
|
@ -456,7 +456,8 @@ void P_ParseAnimationDefintion(SINT8 istexture)
|
||||||
|
|
||||||
// Search for existing animdef
|
// Search for existing animdef
|
||||||
for (i = 0; i < maxanims; i++)
|
for (i = 0; i < maxanims; i++)
|
||||||
if (stricmp(animdefsToken, animdefs[i].startname) == 0)
|
if (animdefs[i].istexture == istexture // Check if it's the same type!
|
||||||
|
&& stricmp(animdefsToken, animdefs[i].startname) == 0)
|
||||||
{
|
{
|
||||||
//CONS_Alert(CONS_NOTICE, "Duplicate animation: %s\n", animdefsToken);
|
//CONS_Alert(CONS_NOTICE, "Duplicate animation: %s\n", animdefsToken);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue