mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
- removed Line_SetVisualPortal special. This will be folded into Line_SetPortal later
This commit is contained in:
parent
2516b8f8af
commit
6639984772
3 changed files with 2 additions and 5 deletions
|
@ -139,7 +139,6 @@ DEFINE_SPECIAL(Sector_ChangeSound, 140, 2, 2, 2)
|
|||
|
||||
DEFINE_SPECIAL(Teleport_NoStop, 154, 2, 3, 3)
|
||||
// portal specials
|
||||
DEFINE_SPECIAL(Line_SetVisualPortal, 155, -1, -1, 3)
|
||||
DEFINE_SPECIAL(Line_SetPortal, 156, -1, -1, 3)
|
||||
// GZDoom/Vavoom specials
|
||||
// Although ZDoom doesn't support them it's better to have them defined so that
|
||||
|
|
|
@ -1962,7 +1962,6 @@ void P_SetLineID (int i, line_t *ld)
|
|||
break;
|
||||
|
||||
case Line_SetPortal:
|
||||
case Line_SetVisualPortal:
|
||||
setid = ld->args[1]; // 0 = target id, 1 = this id, 2 = plane anchor
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -91,8 +91,7 @@ bool P_CheckPortal(line_t* line)
|
|||
line->portal_passive = true;
|
||||
line->portal_dst = line;
|
||||
}
|
||||
else if (line->special == Line_SetPortal ||
|
||||
line->special == Line_SetVisualPortal)
|
||||
else if (line->special == Line_SetPortal)
|
||||
{
|
||||
// portal destination is special argument #0
|
||||
line_t* dst = NULL;
|
||||
|
@ -117,7 +116,7 @@ bool P_CheckPortal(line_t* line)
|
|||
{
|
||||
line->portal = true;
|
||||
line->portal_mirror = false;
|
||||
line->portal_passive = (line->special == Line_SetVisualPortal);
|
||||
line->portal_passive = true;// !!(line->args[2] & PORTAL_VISUAL; (line->special == Line_SetVisualPortal);
|
||||
line->portal_dst = dst;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue