Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Renderer: Icarus MAP01 force fields not rendered
IssueID #1053
  • Loading branch information
skyjake committed Dec 13, 2019
1 parent fac9f4f commit ee94363
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/render/rend_main.cpp
Expand Up @@ -757,7 +757,7 @@ ClientMaterial *Rend_ChooseMapSurfaceMaterial(Surface const &surface)
}
else if (&surface == &side.top())
{
static_cast<ClientMaterial *>(side.sector().ceiling().surface().materialPtr());
return static_cast<ClientMaterial *>(side.sector().ceiling().surface().materialPtr());
}
}
}
Expand Down
12 changes: 11 additions & 1 deletion doomsday/apps/client/src/render/walledge.cpp
Expand Up @@ -358,7 +358,7 @@ struct WallEdge::Impl : public IHPlane

if (!line.isSelfReferencing() && fceil == &subsec.sector().ceiling())
{
hi = de::min(bceil->heightSmoothed(), fceil->heightSmoothed());
hi = de::min(bceil->heightSmoothed(), fceil->heightSmoothed());
}
else
{
Expand Down Expand Up @@ -420,6 +420,16 @@ struct WallEdge::Impl : public IHPlane
}
}
}

// Icarus map01: force fields use a masked middle texture that expands above the sector
if (isExtendedMasked)
{
if (hi - lo < middle.material().height())
{
hi = lo + middle.material().height();
}
}

break; }
}
}
Expand Down

0 comments on commit ee94363

Please sign in to comment.