mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-20 18:01:16 +00:00
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
1 changed files with 10 additions and 10 deletions
|
@ -2890,18 +2890,18 @@ void EV_CrumbleChain(sector_t *sec, ffloor_t *rover)
|
|||
|
||||
#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)
|
||||
type = (mobjtype_t)sides[controlsec->lines[i]->sidenum[0]].toptexture; // Set as object type in p_setup.c...
|
||||
if (sides[controlsec->lines[i]->sidenum[0]].textureoffset)
|
||||
spacing = sides[controlsec->lines[i]->sidenum[0]].textureoffset;
|
||||
if (sides[controlsec->lines[i]->sidenum[0]].rowoffset)
|
||||
lifetime = (sides[controlsec->lines[i]->sidenum[0]].rowoffset>>FRACBITS);
|
||||
flags = controlsec->lines[i]->flags;
|
||||
break; // If someone has multiple parameter linedefs per control sector, TOUGH.
|
||||
if (sides[lines[tagline].sidenum[0]].toptexture)
|
||||
type = (mobjtype_t)sides[lines[tagline].sidenum[0]].toptexture; // Set as object type in p_setup.c...
|
||||
if (sides[lines[tagline].sidenum[0]].textureoffset)
|
||||
spacing = sides[lines[tagline].sidenum[0]].textureoffset;
|
||||
if (sides[lines[tagline].sidenum[0]].rowoffset)
|
||||
lifetime = (sides[lines[tagline].sidenum[0]].rowoffset>>FRACBITS);
|
||||
flags = lines[tagline].flags;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue