Completely forgot P_FindSpecialLineFromTag was a thing. Now Linedef type 14 doesn't need to be in the same sector, but requires a tag...
This commit is contained in:
parent
6f291d667e
commit
58d0d2d5e9
|
@ -2890,18 +2890,18 @@ void EV_CrumbleChain(sector_t *sec, ffloor_t *rover)
|
||||||
|
|
||||||
#define controlsec rover->master->frontsector
|
#define controlsec rover->master->frontsector
|
||||||
|
|
||||||
for (i = 0; i < controlsec->linecount; i++)
|
if (controlsec->tag != 0)
|
||||||
{
|
{
|
||||||
if (controlsec->lines[i]->special == 14) // If we can use bustable block parameters, we will.
|
size_t tagline = P_FindSpecialLineFromTag(14, controlsec->tag, -1);
|
||||||
|
if (tagline != -1)
|
||||||
{
|
{
|
||||||
if (sides[controlsec->lines[i]->sidenum[0]].toptexture)
|
if (sides[lines[tagline].sidenum[0]].toptexture)
|
||||||
type = (mobjtype_t)sides[controlsec->lines[i]->sidenum[0]].toptexture; // Set as object type in p_setup.c...
|
type = (mobjtype_t)sides[lines[tagline].sidenum[0]].toptexture; // Set as object type in p_setup.c...
|
||||||
if (sides[controlsec->lines[i]->sidenum[0]].textureoffset)
|
if (sides[lines[tagline].sidenum[0]].textureoffset)
|
||||||
spacing = sides[controlsec->lines[i]->sidenum[0]].textureoffset;
|
spacing = sides[lines[tagline].sidenum[0]].textureoffset;
|
||||||
if (sides[controlsec->lines[i]->sidenum[0]].rowoffset)
|
if (sides[lines[tagline].sidenum[0]].rowoffset)
|
||||||
lifetime = (sides[controlsec->lines[i]->sidenum[0]].rowoffset>>FRACBITS);
|
lifetime = (sides[lines[tagline].sidenum[0]].rowoffset>>FRACBITS);
|
||||||
flags = controlsec->lines[i]->flags;
|
flags = lines[tagline].flags;
|
||||||
break; // If someone has multiple parameter linedefs per control sector, TOUGH.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue