Parcourir la source

If zonemap (EQ2Map) is not loaded line of sight is disabled (all will see each other even through walls)

Image il y a 4 ans
Parent
commit
fa85a124cd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      EQ2/source/WorldServer/Spawn.cpp

+ 1 - 1
EQ2/source/WorldServer/Spawn.cpp

@@ -2783,7 +2783,7 @@ bool Spawn::CheckLoS(glm::vec3 myloc, glm::vec3 oloc)
 {
 	ZoneServer* zone = GetZone();
 	if (zone == NULL || zone->zonemap == NULL)
-		return false;
+		return true;
 	else
 		return zone->zonemap->CheckLoS(myloc, oloc);