- fixed: The backlink portal for EE-style definition needs to be done along with the first portal because the code won't find the anchor line itself.

This commit is contained in:
Christoph Oelckers 2016-02-06 00:21:44 +01:00
parent ee3c41bf7b
commit ed7b7fc0ba

View file

@ -85,6 +85,18 @@ void P_SpawnLinePortal(line_t* line)
port->mType = PORTT_LINKED;
port->mAlign = PORG_ABSOLUTE;
port->mDefFlags = PORTF_TYPEINTERACTIVE;
// we need to create the backlink here, too.
lines[i].portalindex = linePortals.Reserve(1);
port = &linePortals.Last();
memset(port, 0, sizeof(FLinePortal));
port->mOrigin = &lines[i];
port->mDestination = line;
port->mType = PORTT_LINKED;
port->mAlign = PORG_ABSOLUTE;
port->mDefFlags = PORTF_TYPEINTERACTIVE;
}
}
}