diff options
author | megamage <none@none> | 2008-11-08 09:03:56 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-08 09:03:56 -0600 |
commit | 7b23225006f8c942f670521f96c02d061600192d (patch) | |
tree | b42ae9474e153bf25b3041a5412fe2700b1107e5 /src/game/Player.cpp | |
parent | 339006e515ac1cc1063e92bc89651df98fade079 (diff) |
[svn] Disable LOS check in canSeeOrDetect. It has been proved that CPU cannot sustain so much calculation.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 8699296e75d..4b4f444471c 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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 |