Procházet zdrojové kódy

- Fixed clif_GlobalMessage being the exact same function as clif_message (the fiirst should send to ALL_CLIENT and the later should send to AREA_CHAT_WOS). Should fix globalmes script command.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6596 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex před 19 roky
rodič
revize
eb63227578
3 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 3 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/clif.c
  3. 1 1
      src/map/skill.c

+ 3 - 0
Changelog-Trunk.txt

@@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/05/15
+	* Fixed clif_GlobalMessage being the exact same function as clif_message
+	  (the first should send to ALL_CLIENT and the later should send to
+	  AREA_CHAT_WOS). Should fix globalmes script command. [Skotlex]
 	* Added SC_BLADESTOP to the switch listing in status_change_start [Skotlex]
 	* Characters in vending are now always considered "idle" if the
 	  idle_no_share setting is active. [Skotlex]

+ 1 - 1
src/map/clif.c

@@ -4938,7 +4938,7 @@ void clif_GlobalMessage(struct block_list *bl,char *message)
 	WBUFW(buf,2)=len+8;
 	WBUFL(buf,4)=bl->id;
 	strncpy((char *) WBUFP(buf,8),message,len);
-	clif_send((unsigned char *) buf,WBUFW(buf,2),bl,AREA_CHAT_WOC);
+	clif_send((unsigned char *) buf,WBUFW(buf,2),bl,ALL_CLIENT);
 }
 
 /*==========================================

+ 1 - 1
src/map/skill.c

@@ -4173,7 +4173,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
 			if (strlen(md->name) + strlen(skill_db[skillid].desc) > 120)
 				break; //Message won't fit on buffer. [Skotlex]
 			sprintf(temp,"%s : %s !!",md->name,skill_db[skillid].desc);
-			clif_GlobalMessage(&md->bl,temp);
+			clif_message(&md->bl,temp);
 		}
 		break;