*Merge [8524] New cell search algorithm implemented. You can now choose different
visibility distances on continents, in BG/Arenas and instances. Author: Ambal *Some warning cleanup --HG-- branch : trunk
This commit is contained in:
1 parent
a635bdd0cc
commit
f980dd9ac6
30 files changed
+606
-140
No files matched your search
+1
-1
@@ -10770,7 +10770,7 @@ int32 Unit::ModifyPower(Powers power, int32 dVal)
|
||||
|
||||
bool Unit::isVisibleForOrDetect(Unit const* u, bool detect, bool inVisibleList, bool is3dDistance) const
|
||||
{
|
||||
if(!u)
|
||||
if(!u || !IsInMap(u))
|
||||
return false;
|
||||
|
||||
return u->canSeeOrDetect(this, detect, inVisibleList, is3dDistance);
|
||||
|
||||
Reference in new issue
Block a user