mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
Fix 3d floor surfaces accidentaly marked as sky
This commit is contained in:
parent
7c5e2c71b0
commit
3bf0669c57
1 changed files with 4 additions and 2 deletions
|
@ -699,17 +699,18 @@ void DoomLevelMesh::CreateSideSurfaces(FLevelLocals &doomMap, side_t *side)
|
|||
void DoomLevelMesh::CreateFloorSurface(FLevelLocals &doomMap, subsector_t *sub, sector_t *sector, sector_t *controlSector, int typeIndex)
|
||||
{
|
||||
DoomLevelMeshSurface surf;
|
||||
surf.bSky = IsSkySector(sector, sector_t::floor);
|
||||
|
||||
secplane_t plane;
|
||||
if (!controlSector)
|
||||
{
|
||||
plane = sector->floorplane;
|
||||
surf.bSky = IsSkySector(sector, sector_t::floor);
|
||||
}
|
||||
else
|
||||
{
|
||||
plane = controlSector->ceilingplane;
|
||||
plane.FlipVert();
|
||||
surf.bSky = false;
|
||||
}
|
||||
|
||||
surf.numVerts = sub->numlines;
|
||||
|
@ -739,17 +740,18 @@ void DoomLevelMesh::CreateFloorSurface(FLevelLocals &doomMap, subsector_t *sub,
|
|||
void DoomLevelMesh::CreateCeilingSurface(FLevelLocals& doomMap, subsector_t* sub, sector_t* sector, sector_t* controlSector, int typeIndex)
|
||||
{
|
||||
DoomLevelMeshSurface surf;
|
||||
surf.bSky = IsSkySector(sector, sector_t::ceiling);
|
||||
|
||||
secplane_t plane;
|
||||
if (!controlSector)
|
||||
{
|
||||
plane = sector->ceilingplane;
|
||||
surf.bSky = IsSkySector(sector, sector_t::ceiling);
|
||||
}
|
||||
else
|
||||
{
|
||||
plane = controlSector->floorplane;
|
||||
plane.FlipVert();
|
||||
surf.bSky = false;
|
||||
}
|
||||
|
||||
surf.numVerts = sub->numlines;
|
||||
|
|
Loading…
Reference in a new issue