Skip to content

Commit 9f51cd3

Browse files
authored
Merge pull request #357 from MrS-ibra/observer-radius-decal
Extend visibility condition in createRadiusDecal() to include observer players
2 parents b3fdb73 + 6d51c60 commit 9f51cd3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Core/GameEngine/Source/GameClient/RadiusDecal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ void RadiusDecalTemplate::createRadiusDecal(const Coord3D& pos, Real radius, con
6666
// it is now considered nonEmpty, regardless of the state of m_decal, etc
6767
result.m_empty = false;
6868

69-
if (!m_onlyVisibleToOwningPlayer ||
70-
owningPlayer->getPlayerIndex() == ThePlayerList->getLocalPlayer()->getPlayerIndex())
69+
if (!m_onlyVisibleToOwningPlayer || owningPlayer->getPlayerIndex() == ThePlayerList->getLocalPlayer()->getPlayerIndex()
70+
|| ThePlayerList->getLocalPlayer()->isPlayerObserver())
7171
{
7272
Shadow::ShadowTypeInfo decalInfo;
7373
decalInfo.allowUpdates = FALSE; // shadow texture will never update

0 commit comments

Comments
 (0)