mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-21 18:32:08 +00:00
Particle generator: Use args[6] instead of angle for tagging
This commit is contained in:
parent
3bac97ee65
commit
338f1357a6
3 changed files with 8 additions and 2 deletions
|
@ -5465,6 +5465,11 @@ udmf
|
|||
{
|
||||
title = "Rising distance";
|
||||
}
|
||||
arg6
|
||||
{
|
||||
title = "Heights control linedef";
|
||||
type = 15;
|
||||
}
|
||||
}
|
||||
758
|
||||
{
|
||||
|
|
|
@ -12430,8 +12430,8 @@ static boolean P_SetupParticleGen(mapthing_t *mthing, mobj_t *mobj)
|
|||
INT32 line;
|
||||
const size_t mthingi = (size_t)(mthing - mapthings);
|
||||
|
||||
// Find the corresponding linedef special, using angle as tag
|
||||
line = Tag_FindLineSpecial(15, mthing->angle);
|
||||
// Find the corresponding linedef special, using args[6] as tag
|
||||
line = mthing->args[6] ? Tag_FindLineSpecial(15, mthing->args[6]) : -1;
|
||||
|
||||
type = mthing->stringargs[0] ? get_number(mthing->stringargs[0]) : MT_PARTICLE;
|
||||
|
||||
|
|
|
@ -5206,6 +5206,7 @@ static void P_ConvertBinaryMap(void)
|
|||
mapthings[i].args[2] = sides[lines[j].sidenum[0]].textureoffset >> FRACBITS;
|
||||
mapthings[i].args[3] = sides[lines[j].sidenum[0]].rowoffset >> FRACBITS;
|
||||
mapthings[i].args[4] = lines[j].backsector ? sides[lines[j].sidenum[1]].textureoffset >> FRACBITS : 0;
|
||||
mapthings[i].args[6] = mapthings[i].angle;
|
||||
if (sides[lines[j].sidenum[0]].toptexture)
|
||||
P_WriteConstant(sides[lines[j].sidenum[0]].toptexture, &mapthings[i].stringargs[0]);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue