소스 검색

Packet optimisation: does not broadcast StatusUpdate for CP decrease if HP update will be next.
Avoiding double broadcast.

_DS_ 15 년 전
부모
커밋
d65a3d3acb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      L2_GameServer/java/net/sf/l2j/gameserver/model/actor/status/PcStatus.java

+ 1 - 1
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/status/PcStatus.java

@@ -145,7 +145,7 @@ public class PcStatus extends PlayableStatus
 				else
 				{
 					value -= getCurrentCp();                // Get diff from value vs Cp; will apply diff to Hp
-					setCurrentCp(0);                        // Set Cp to 0
+					setCurrentCp(0, false);                        // Set Cp to 0
 				}
 			}