mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 13:23:56 -07:00
Fix Gaia perspective, in which one could only see entities with a dirty visibility cache.
This was SVN commit r16250.
This commit is contained in:
parent
f52e3ea052
commit
7020d17886
1 changed files with 4 additions and 0 deletions
|
|
@ -1481,6 +1481,10 @@ public:
|
|||
CFixedVector2D pos = cmpPosition->GetPosition2D();
|
||||
i32 n = PosToLosTilesHelper(pos.X, pos.Y);
|
||||
|
||||
// Gaia does not have a visibility cache
|
||||
if (player == 0)
|
||||
return ComputeLosVisibility(ent, player);
|
||||
|
||||
if (m_DirtyVisibility[n])
|
||||
return ComputeLosVisibility(ent, player);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue