- fixed: interactive line portals were always deactivated, regardless of alignment type.

This commit is contained in:
Christoph Oelckers 2016-05-25 11:36:23 +02:00
parent f241d9773a
commit cc685e982b

View file

@ -314,7 +314,7 @@ void P_SpawnLinePortal(line_t* line)
else
{
port->mAlign = BYTE(line->args[3] >= PORG_ABSOLUTE && line->args[3] <= PORG_CEILING ? line->args[3] : PORG_ABSOLUTE);
if (port->mType == PORTT_INTERACTIVE)
if (port->mType == PORTT_INTERACTIVE && port->mAlign != PORG_ABSOLUTE)
{
// Due to the way z is often handled, these pose a major issue for parts of the code that needs to transparently handle interactive portals.
Printf(TEXTCOLOR_RED "Warning: z-offsetting not allowed for interactive portals. Changing line %d to teleport-portal!\n", int(line - lines));