[svn] Disable LOS check in canSeeOrDetect. It has been proved that CPU cannot sustain so much calculation.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-08 09:03:56 -06:00
parent 339006e515
commit 7b23225006
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -17284,8 +17284,10 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList) cons
return false;
}
// If use this server will be too laggy
// Now check is target visible with LoS
return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ());
//return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ());
return true;
}
bool Player::IsVisibleInGridForPlayer( Player const * pl ) const