- Removed the 64 seg limit for polyobjects defined with Polyobj_ExplicitLine.

- Polyobj_StartLine and Polyobj_ExplicitLine can now set a line's ID. This is
  the fourth parameter for Polyobj_StartLine and the fifth parameter for
  Polyobj_ExplicitLine.


SVN r310 (trunk)
This commit is contained in:
Randy Heit 2006-08-24 19:19:15 +00:00
commit cf3b1bfd6e
3 changed files with 27 additions and 21 deletions

View file

@ -1649,21 +1649,30 @@ void P_AdjustLine (line_t *ld)
// the tag doesn't always go into the first arg.
if (level.flags & LEVEL_HEXENFORMAT)
{
if (ld->special == Line_SetIdentification)
switch (ld->special)
{
case Line_SetIdentification:
ld->id = ld->args[0];
ld->flags |= ld->args[1]<<16;
}
else if (ld->special == TranslucentLine)
{
break;
case TranslucentLine:
ld->id = ld->args[0];
ld->flags |= ld->args[3]<<16;
}
else if (
ld->special == Teleport_Line ||
ld->special == Scroll_Texture_Model)
{
break;
case Teleport_Line:
case Scroll_Texture_Model:
ld->id = ld->args[0];
break;
case Polyobj_StartLine:
ld->id = ld->args[3];
break;
case Polyobj_ExplicitLine:
ld->id = ld->args[4];
break;
}
}
}