Adapt emblem tags to UDMF

This commit is contained in:
MascaraSnake 2021-12-21 17:58:37 +01:00
parent cbebdc219d
commit 4b58b45b5f
2 changed files with 3 additions and 2 deletions

View file

@ -12095,7 +12095,7 @@ static boolean P_SetupEmblem(mapthing_t *mthing, mobj_t *mobj)
while (emblem) while (emblem)
{ {
if ((emblem->type == ET_GLOBAL || emblem->type == ET_SKIN) && emblem->tag == mthing->angle) if ((emblem->type == ET_GLOBAL || emblem->type == ET_SKIN) && emblem->tag == Tag_FGet(&mthing->tags))
break; break;
emblem = M_GetLevelEmblems(-1); emblem = M_GetLevelEmblems(-1);
@ -12103,7 +12103,7 @@ static boolean P_SetupEmblem(mapthing_t *mthing, mobj_t *mobj)
if (!emblem) if (!emblem)
{ {
CONS_Debug(DBG_GAMELOGIC, "No map emblem for map %d with tag %d found!\n", gamemap, mthing->angle); CONS_Debug(DBG_GAMELOGIC, "No map emblem for map %d with tag %d found!\n", gamemap, Tag_FGet(&mthing->tags));
return false; return false;
} }

View file

@ -3123,6 +3123,7 @@ static void P_AddBinaryMapTags(void)
switch (mapthings[i].type) switch (mapthings[i].type)
{ {
case 291: case 291:
case 322:
case 750: case 750:
case 760: case 760:
case 761: case 761: