Explorar el Código

Quest SetCompleteFlag now updates player the quest is tied to

Fix #276
Image hace 3 años
padre
commit
c83409daec
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      EQ2/source/WorldServer/Quests.cpp

+ 2 - 0
EQ2/source/WorldServer/Quests.cpp

@@ -1722,6 +1722,8 @@ void Quest::SetLevel(int8 in_level) {
 void Quest::SetCompletedFlag(bool val) { 
 	completed_flag = val; 
 	SetUpdateRequired(true);
+	if(player && player->GetClient())
+		player->GetClient()->SendQuestJournalUpdate(this, true);
 }
 
 void Quest::SetStepTimer(int32 duration) {