瀏覽代碼

Adjusted the Achievement Chat Counter
* Fixes #2334.
* Moved the achievement objective update function before the NPC waiting room event trigger.
Thanks to @ClayJensen and @Atemo!

aleos 7 年之前
父節點
當前提交
3e51f68570
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/map/chat.c

+ 2 - 2
src/map/chat.c

@@ -168,11 +168,11 @@ int chat_joinchat(struct map_session_data* sd, int chatid, const char* pass)
 	clif_addchat(cd, sd); //Reports To the person who already in the chat
 	clif_dispchat(cd, 0); //Reported number of changes to the people around
 
-	chat_triggerevent(cd); //Event
-
 	if (cd->owner->type == BL_PC)
 		achievement_update_objective(map_id2sd(cd->owner->id), AG_CHAT_COUNT, 1, cd->users);
 
+	chat_triggerevent(cd); //Event
+
 	return 0;
 }