Core/Spells: Some corrections after 65aca2b806, this should fix the console spam

This commit is contained in:
elecyb committed 2012-01-03 16:34:05 -03:00
1 parent aea8b2af44
commit 6b35b76fba
2 files changed
+5 -5

No files matched your search

@@ -1672,6 +1672,9 @@ bool WorldObject::canSeeOrDetect(WorldObject const* obj, bool ignoreStealth, boo
if (Player const* player = this->ToPlayer())
viewpoint = player->GetViewpoint();
if (!viewpoint)
viewpoint = this;
if (!corpseCheck && !viewpoint->IsWithinDist(obj, GetSightRange(obj), false))
return false;
}