mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-07 02:23:13 +00:00
Delete tags.
This commit is contained in:
parent
e87ad0fb38
commit
aa0d76f8fa
6 changed files with 4 additions and 30 deletions
|
@ -205,7 +205,6 @@ typedef struct
|
|||
UINT16 options;
|
||||
INT16 z;
|
||||
UINT8 extrainfo;
|
||||
INT16 tag;
|
||||
taglist_t tags;
|
||||
struct mobj_s *mobj;
|
||||
} mapthing_t;
|
||||
|
|
|
@ -3866,13 +3866,10 @@ void A_BossDeath(mobj_t *mo)
|
|||
{
|
||||
// Bring the egg trap up to the surface
|
||||
// Incredibly shitty code ahead
|
||||
junk.tag = LE_CAPSULE0;
|
||||
Tag_FSet(&junk.tags, LE_CAPSULE0);
|
||||
EV_DoElevator(&junk, elevateHighest, false);
|
||||
junk.tag = LE_CAPSULE1;
|
||||
Tag_FSet(&junk.tags, LE_CAPSULE1);
|
||||
EV_DoElevator(&junk, elevateUp, false);
|
||||
junk.tag = LE_CAPSULE2;
|
||||
Tag_FSet(&junk.tags, LE_CAPSULE2);
|
||||
EV_DoElevator(&junk, elevateHighest, false);
|
||||
|
||||
|
@ -3996,7 +3993,6 @@ bossjustdie:
|
|||
}
|
||||
case MT_KOOPA:
|
||||
{
|
||||
junk.tag = LE_KOOPA;
|
||||
Tag_FSet(&junk.tags, LE_KOOPA);
|
||||
EV_DoCeiling(&junk, raiseToHighest);
|
||||
return;
|
||||
|
|
|
@ -1376,7 +1376,6 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
if (player->bot)
|
||||
return;
|
||||
|
||||
junk.tag = LE_AXE;
|
||||
Tag_FSet(&junk.tags, LE_AXE);
|
||||
EV_DoElevator(&junk, bridgeFall, false);
|
||||
|
||||
|
|
|
@ -933,7 +933,6 @@ static void P_LoadSectors(UINT8 *data)
|
|||
|
||||
ss->lightlevel = SHORT(ms->lightlevel);
|
||||
ss->special = SHORT(ms->special);
|
||||
ss->tag = SHORT(ms->tag);
|
||||
Tag_FSet(&ss->tags, SHORT(ms->tag));
|
||||
|
||||
ss->floor_xoffs = ss->floor_yoffs = 0;
|
||||
|
@ -1047,7 +1046,6 @@ static void P_LoadLinedefs(UINT8 *data)
|
|||
{
|
||||
ld->flags = SHORT(mld->flags);
|
||||
ld->special = SHORT(mld->special);
|
||||
ld->tag = SHORT(mld->tag);
|
||||
Tag_FSet(&ld->tags, SHORT(mld->tag));
|
||||
memset(ld->args, 0, NUMLINEARGS*sizeof(*ld->args));
|
||||
memset(ld->stringargs, 0x00, NUMLINESTRINGARGS*sizeof(*ld->stringargs));
|
||||
|
@ -1278,7 +1276,6 @@ static void P_LoadThings(UINT8 *data)
|
|||
mt->type = READUINT16(data);
|
||||
mt->options = READUINT16(data);
|
||||
mt->extrainfo = (UINT8)(mt->type >> 12);
|
||||
mt->tag = 0;
|
||||
Tag_FSet(&mt->tags, 0);
|
||||
|
||||
mt->type &= 4095;
|
||||
|
@ -1399,10 +1396,7 @@ static void ParseTextmapSectorParameter(UINT32 i, char *param, char *val)
|
|||
else if (fastcmp(param, "special"))
|
||||
sectors[i].special = atol(val);
|
||||
else if (fastcmp(param, "id"))
|
||||
{
|
||||
sectors[i].tag = atol(val);
|
||||
Tag_FSet(§ors[i].tags, sectors[i].tag);
|
||||
}
|
||||
Tag_FSet(§ors[i].tags, atol(val));
|
||||
else if (fastcmp(param, "moreids"))
|
||||
{
|
||||
char* id = val;
|
||||
|
@ -1448,10 +1442,7 @@ static void ParseTextmapSidedefParameter(UINT32 i, char *param, char *val)
|
|||
static void ParseTextmapLinedefParameter(UINT32 i, char *param, char *val)
|
||||
{
|
||||
if (fastcmp(param, "id"))
|
||||
{
|
||||
lines[i].tag = atol(val);
|
||||
Tag_FSet(&lines[i].tags, lines[i].tag);
|
||||
}
|
||||
Tag_FSet(&lines[i].tags, atol(val));
|
||||
else if (fastcmp(param, "moreids"))
|
||||
{
|
||||
char* id = val;
|
||||
|
@ -1528,10 +1519,7 @@ static void ParseTextmapLinedefParameter(UINT32 i, char *param, char *val)
|
|||
static void ParseTextmapThingParameter(UINT32 i, char *param, char *val)
|
||||
{
|
||||
if (fastcmp(param, "id"))
|
||||
{
|
||||
mapthings[i].tag = atol(val);
|
||||
Tag_FSet(&mapthings[i].tags, mapthings[i].tag);
|
||||
}
|
||||
Tag_FSet(&mapthings[i].tags, atol(val));
|
||||
else if (fastcmp(param, "moreids"))
|
||||
{
|
||||
char* id = val;
|
||||
|
@ -1670,7 +1658,6 @@ static void P_LoadTextmap(void)
|
|||
sc->lightlevel = 255;
|
||||
|
||||
sc->special = 0;
|
||||
sc->tag = 0;
|
||||
Tag_FSet(&sc->tags, 0);
|
||||
|
||||
sc->floor_xoffs = sc->floor_yoffs = 0;
|
||||
|
@ -1690,7 +1677,6 @@ static void P_LoadTextmap(void)
|
|||
ld->v1 = ld->v2 = NULL;
|
||||
ld->flags = 0;
|
||||
ld->special = 0;
|
||||
ld->tag = 0;
|
||||
Tag_FSet(&ld->tags, 0);
|
||||
|
||||
memset(ld->args, 0, NUMLINEARGS*sizeof(*ld->args));
|
||||
|
@ -1739,7 +1725,6 @@ static void P_LoadTextmap(void)
|
|||
mt->options = 0;
|
||||
mt->z = 0;
|
||||
mt->extrainfo = 0;
|
||||
mt->tag = 0;
|
||||
Tag_FSet(&mt->tags, 0);
|
||||
mt->mobj = NULL;
|
||||
|
||||
|
|
|
@ -4366,16 +4366,13 @@ void P_ProcessSpecialSector(player_t *player, sector_t *sector, sector_t *rovers
|
|||
|
||||
// Move the button down
|
||||
Tag_FSet(&junk.tags, 680);
|
||||
junk.tag = 680;
|
||||
EV_DoElevator(&junk, elevateDown, false);
|
||||
|
||||
// Open the top FOF
|
||||
Tag_FSet(&junk.tags, 681);
|
||||
junk.tag = 681;
|
||||
EV_DoFloor(&junk, raiseFloorToNearestFast);
|
||||
// Open the bottom FOF
|
||||
Tag_FSet(&junk.tags, 682);
|
||||
junk.tag = 682;
|
||||
EV_DoCeiling(&junk, lowerToLowestFast);
|
||||
|
||||
// Mark all players with the time to exit thingy!
|
||||
|
@ -5549,7 +5546,7 @@ static ffloor_t *P_AddFakeFloor(sector_t *sec, sector_t *sec2, line_t *master, f
|
|||
{
|
||||
fixed_t tempceiling = sec2->ceilingheight;
|
||||
//flip the sector around and print an error instead of crashing 12.1.08 -Inuyasha
|
||||
CONS_Alert(CONS_ERROR, M_GetText("A FOF tagged %d has a top height below its bottom.\n"), master->tag);
|
||||
CONS_Alert(CONS_ERROR, M_GetText("FOF (line %d) has a top height below its bottom.\n"), master - lines);
|
||||
sec2->ceilingheight = sec2->floorheight;
|
||||
sec2->floorheight = tempceiling;
|
||||
}
|
||||
|
|
|
@ -291,7 +291,6 @@ typedef struct sector_s
|
|||
INT32 ceilingpic;
|
||||
INT16 lightlevel;
|
||||
INT16 special;
|
||||
UINT16 tag;
|
||||
taglist_t tags;
|
||||
|
||||
// origin for any sounds played by the sector
|
||||
|
@ -409,7 +408,6 @@ typedef struct line_s
|
|||
// Animation related.
|
||||
INT16 flags;
|
||||
INT16 special;
|
||||
INT16 tag;
|
||||
taglist_t tags;
|
||||
INT32 args[NUMLINEARGS];
|
||||
char *stringargs[NUMLINESTRINGARGS];
|
||||
|
|
Loading…
Reference in a new issue