Some cleanup of CanSeeOrDetect code.

This commit is contained in:
megamage committed 2011-10-13 13:26:27 -04:00
1 parent dc2bdb8e13
commit 5912e2444d
10 files changed
+25 -42

No files matched your search

@@ -854,16 +854,16 @@ bool GameObject::isAlwaysVisibleFor(WorldObject const* seer) const
return false;
}
bool GameObject::isVisibleForInState(WorldObject const* seer) const
bool GameObject::IsInvisibleDueToDespawn() const
{
if (!WorldObject::isVisibleForInState(seer))
return false;
if (WorldObject::IsInvisibleDueToDespawn())
return true;
// Despawned
if (!isSpawned())
return false;
return true;
return true;
return false;
}
void GameObject::Respawn()