summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-29 13:11:33 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-29 13:11:33 +0000
commitc78e2df7e04a41e3a69cc49a14022ccf0402f406 (patch)
tree36230ca1271b43269bf12ca1b4a4af9db794c0fa /src/map/clif.c
parenta3002eabaa37d2fc60903d8500ac1ec21c0de8fd (diff)
downloadhercules-c78e2df7e04a41e3a69cc49a14022ccf0402f406.tar.gz
hercules-c78e2df7e04a41e3a69cc49a14022ccf0402f406.tar.bz2
hercules-c78e2df7e04a41e3a69cc49a14022ccf0402f406.tar.xz
hercules-c78e2df7e04a41e3a69cc49a14022ccf0402f406.zip
- Allowed disguising while riding a peco-peco (this does not seem to cause problems anymore)
- Adjusted pc_disguise to work properly if invoked while a player is not in a map. - The pvp rank packet is no longer sent to other players when disguised, as this leads to crashes when you die. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11842 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index adc45b069..5f59bda74 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -4718,9 +4718,8 @@ int clif_set0199(int fd,int type)
*------------------------------------------*/
int clif_pvpset(struct map_session_data *sd,int pvprank,int pvpnum,int type)
{
- int fd = sd->fd;
-
if(type == 2) {
+ int fd = sd->fd;
WFIFOHEAD(fd,packet_len(0x19a));
WFIFOW(fd,0) = 0x19a;
WFIFOL(fd,2) = sd->bl.id;
@@ -4736,7 +4735,7 @@ int clif_pvpset(struct map_session_data *sd,int pvprank,int pvpnum,int type)
else
WBUFL(buf,6) = pvprank;
WBUFL(buf,10) = pvpnum;
- if(sd->sc.option&OPTION_INVISIBLE)
+ if(sd->sc.option&OPTION_INVISIBLE || sd->disguise) //Causes crashes when a 'mob' with pvp info dies.
clif_send(buf,packet_len(0x19a),&sd->bl,SELF);
else if(!type)
clif_send(buf,packet_len(0x19a),&sd->bl,AREA);