mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- added the case '0: switch the portal of to P_ChangePortal.
This commit is contained in:
parent
e726143c15
commit
20aa7c75de
1 changed files with 6 additions and 1 deletions
|
@ -165,8 +165,13 @@ static bool ChangePortalLine(line_t *line, int destid)
|
||||||
if (line->portalindex >= linePortals.Size()) return false;
|
if (line->portalindex >= linePortals.Size()) return false;
|
||||||
FLinePortal *port = &linePortals[line->portalindex];
|
FLinePortal *port = &linePortals[line->portalindex];
|
||||||
if (port->mType == PORTT_LINKED) return false; // linked portals cannot be changed.
|
if (port->mType == PORTT_LINKED) return false; // linked portals cannot be changed.
|
||||||
|
if (destid == 0) port->mDestination = NULL;
|
||||||
port->mDestination = FindDestination(line, destid);
|
port->mDestination = FindDestination(line, destid);
|
||||||
if (port->mType == PORTT_INTERACTIVE)
|
if (port->mDestination == NULL)
|
||||||
|
{
|
||||||
|
port->mFlags = 0;
|
||||||
|
}
|
||||||
|
else if (port->mType == PORTT_INTERACTIVE)
|
||||||
{
|
{
|
||||||
FLinePortal *portd = &linePortals[port->mDestination->portalindex];
|
FLinePortal *portd = &linePortals[port->mDestination->portalindex];
|
||||||
if (portd != NULL && portd->mType == PORTT_INTERACTIVE && portd->mDestination == line)
|
if (portd != NULL && portd->mType == PORTT_INTERACTIVE && portd->mDestination == line)
|
||||||
|
|
Loading…
Reference in a new issue