Browse Source

Quest updates such as the quest flag/leaf over a kill target now displays properly

Fix #264
Image 3 years ago
parent
commit
13f56a07db
1 changed files with 1 additions and 13 deletions
  1. 1 13
      EQ2/source/WorldServer/zoneserver.cpp

+ 1 - 13
EQ2/source/WorldServer/zoneserver.cpp

@@ -3934,19 +3934,7 @@ void ZoneServer::SendQuestUpdates(Client* client, Spawn* spawn){
 			SendSpawnChanges(spawn, client, false, true);
 	}
 	else{
-		map<int32, Spawn*>::iterator itr;
-		MSpawnList.readlock(__FUNCTION__, __LINE__);
-		for (itr = spawn_list.begin(); itr != spawn_list.end(); itr++) {
-			spawn = itr->second;
-
-			if (spawn) {
-				spawn->m_requiredQuests.readlock(__FUNCTION__, __LINE__);
-				if (spawn && client->GetPlayer()->WasSentSpawn(spawn->GetID()) && !client->GetPlayer()->WasSpawnRemoved(spawn) && (client->GetPlayer()->CheckQuestRemoveFlag(spawn) || client->GetPlayer()->CheckQuestFlag(spawn) != 0 || (spawn->HasQuestsRequired() && client->GetPlayer()->CheckQuestRequired(spawn))))
-					SendSpawnChanges(spawn, client, false, true);
-				spawn->m_requiredQuests.releasereadlock(__FUNCTION__, __LINE__);
-			}
-		}
-		MSpawnList.releasereadlock(__FUNCTION__, __LINE__);
+		client->GetCurrentZone()->SendAllSpawnsForVisChange(client);
 	}
 }