Browse Source

'clif_hpmeter' shouldn't send the packet to the player himself.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14341 54d463be-8e91-2dee-dedb-b68131a5f0ec
Inkfish 15 năm trước cách đây
mục cha
commit
da59a9f4a0
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/clif.c

+ 2 - 0
Changelog-Trunk.txt

@@ -3,6 +3,8 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2010/06/13
+	* 'clif_hpmeter' shouldn't send the packet to the player himself. [Inkfish]
 2010/06/10
 	* Rev. 14336 Updated SC_ITEMBOOST to work similar to how it used to in r11351. [L0ne_W0lf]
 	- Will not boost drop rates past 90%, but ignores those already greater than.

+ 1 - 1
src/map/clif.c

@@ -5987,7 +5987,7 @@ int clif_hpmeter_sub(struct block_list *bl, va_list ap)
 	nullpo_retr(0, sd);
 	nullpo_retr(0, tsd);
 
-	if( !tsd->fd )
+	if( !tsd->fd || tsd == sd )
 		return 0;
 
 	if( (level = pc_isGM(tsd)) >= battle_config.disp_hpmeter && level >= pc_isGM(sd) )