mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-02 18:21:02 +00:00
- added some code to discard lines that could block a view into a portal area.
With this code I can run the Eternity map rf_kerkr.wad without visual glitches. git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@690 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
7c30ee567f
commit
a4d1f4d5b2
11 changed files with 196 additions and 63 deletions
|
@ -898,16 +898,14 @@ void P_SetupPortals()
|
|||
fixed_t deltay2 = points[j]->Mate->y - points[j]->y;
|
||||
if (deltax1 == deltax2 && deltay1 == deltay2)
|
||||
{
|
||||
if (points[j]->Sector->FloorSkyBox == points[j])
|
||||
points[j]->Sector->FloorSkyBox == points[i];
|
||||
if (points[j]->Sector->FloorSkyBox == points[j]->Mate)
|
||||
points[j]->Sector->FloorSkyBox = points[i]->Mate;
|
||||
|
||||
if (points[j]->Sector->CeilingSkyBox == points[j])
|
||||
points[j]->Sector->CeilingSkyBox == points[i];
|
||||
if (points[j]->Sector->CeilingSkyBox == points[j]->Mate)
|
||||
points[j]->Sector->CeilingSkyBox = points[i]->Mate;
|
||||
|
||||
points[j]->special1 = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue