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 | |
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')
-rw-r--r-- | src/game/Creature.cpp | 3 | ||||
-rw-r--r-- | src/game/Player.cpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 14ebf19b94c..2dc48cdefc0 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1529,7 +1529,8 @@ bool Creature::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList) co } // Now check is target visible with LoS - return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ()); + //return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ()); + return true; } bool Creature::IsWithinSightDist(Unit const* u) const 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 |