mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't hitlag tripwire when passing above
This commit is contained in:
parent
f52afc0491
commit
d11179d9aa
1 changed files with 14 additions and 3 deletions
17
src/p_map.c
17
src/p_map.c
|
|
@ -263,9 +263,6 @@ static boolean P_SpecialIsLinedefCrossType(line_t *ld)
|
|||
{
|
||||
boolean linedefcrossspecial = false;
|
||||
|
||||
if (P_IsLineTripWire(ld))
|
||||
return true;
|
||||
|
||||
switch (ld->special)
|
||||
{
|
||||
case 2001: // Finish line
|
||||
|
|
@ -1675,6 +1672,20 @@ static BlockItReturn_t PIT_CheckLine(line_t *ld)
|
|||
{
|
||||
add_spechit(ld);
|
||||
}
|
||||
else if (P_IsLineTripWire(ld))
|
||||
{
|
||||
fixed_t textop, texbottom;
|
||||
|
||||
P_GetMidtextureTopBottom(ld, tmx, tmy,
|
||||
&textop, &texbottom);
|
||||
|
||||
/* The effect handling is done later but it won't
|
||||
know the height values anymore. So don't even add
|
||||
this line to the list unless this thing clips the
|
||||
tripwire's midtexture. */
|
||||
if (tmthing->z <= textop && thingtop >= texbottom)
|
||||
add_spechit(ld);
|
||||
}
|
||||
|
||||
return BMIT_CONTINUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue