mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 10:03:43 +00: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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user