Skip to content

Commit

Permalink
Always use a dynamic shadow for walls.
Browse files Browse the repository at this point in the history
Fixes rotated scavenger wall-corner shadows which were otherwise broken.
  • Loading branch information
KJeff01 committed May 27, 2019
1 parent 3902165 commit 33963b5
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/display3d.cpp
Expand Up @@ -2478,15 +2478,8 @@ static bool renderWallSection(STRUCTURE *psStructure, const glm::mat4 &viewMatri
}
else
{
if (psStructure->pStructureType->type == REF_WALL || psStructure->pStructureType->type == REF_GATE)
{
// walls can be rotated, so use a dynamic shadow for them
pieFlag = pie_SHADOW;
}
else
{
pieFlag = pie_STATIC_SHADOW;
}
// Use a dynamic shadow
pieFlag = pie_SHADOW;
pieFlagData = 0;
}
iIMDShape *imd = psStructure->sDisplay.imd;
Expand Down

0 comments on commit 33963b5

Please sign in to comment.