Allow linedef types 409/410 to change the trigger tag

This commit is contained in:
MascaraSnake 2022-05-29 12:24:14 +02:00
parent 37da148996
commit af7c0f4d6c
3 changed files with 9 additions and 0 deletions

View file

@ -3677,6 +3677,7 @@ udmf
0 = "Add tag";
1 = "Remove tag";
2 = "Replace first tag";
3 = "Change trigger tag";
}
}
}
@ -3699,6 +3700,7 @@ udmf
0 = "Add tag";
1 = "Remove tag";
2 = "Replace first tag";
3 = "Change trigger tag";
}
}
}

View file

@ -2396,6 +2396,9 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
default:
Tag_SectorFSet(secnum, newtag);
break;
case TMT_TRIGGERTAG:
sectors[secnum].triggertag = newtag;
break;
}
}
break;
@ -2418,6 +2421,9 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
default:
Tag_SectorFSet(secnum, newtag);
break;
case TMT_TRIGGERTAG:
sectors[secnum].triggertag = newtag;
break;
}
break;
}

View file

@ -306,6 +306,7 @@ typedef enum
TMT_ADD = 0,
TMT_REMOVE = 1,
TMT_REPLACEFIRST = 2,
TMT_TRIGGERTAG = 3,
} textmaptagoptions_t;
typedef enum