summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-07-28 04:18:08 +0200
committerGitHub <noreply@github.com>2018-07-28 04:18:08 +0200
commit9338574e57ff670162898f359687d9ecaa6464d5 (patch)
tree299e52161564a1af01a8473c3a32492950759693 /src/map/pc.c
parentd4f03181409bf9f7a71d45a2e016a8ec4c3bcc9f (diff)
parent004ec930c6cbb64dfa2b4e6be4bbca72589e349d (diff)
downloadhercules-9338574e57ff670162898f359687d9ecaa6464d5.tar.gz
hercules-9338574e57ff670162898f359687d9ecaa6464d5.tar.bz2
hercules-9338574e57ff670162898f359687d9ecaa6464d5.tar.xz
hercules-9338574e57ff670162898f359687d9ecaa6464d5.zip
Merge pull request #2139 from 4144/updatepackets
update packets up to 2018-07-18 and fix/update old packets
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 01bae5e14..0aad00a56 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1379,6 +1379,7 @@ static bool pc_authok(struct map_session_data *sd, int login_id2, time_t expirat
pc->setpos(sd,sd->status.last_point.map,0,0,CLR_OUTSIGHT);
}
+ clif->overweight_percent(sd);
clif->authok(sd);
//Prevent S. Novices from getting the no-death bonus just yet. [Skotlex]
@@ -8098,6 +8099,9 @@ static int pc_dead(struct map_session_data *sd, struct block_list *src)
}
pc_setdead(sd);
+
+ clif->party_dead_notification(sd);
+
//Reset menu skills/item skills
if (sd->skillitem)
sd->skillitem = sd->skillitemlv = 0;
@@ -10994,7 +10998,12 @@ static void pc_setstand(struct map_session_data *sd)
clif->sc_end(&sd->bl,sd->bl.id,SELF,SI_SIT);
//Reset sitting tick.
sd->ssregen.tick.hp = sd->ssregen.tick.sp = 0;
- sd->state.dead_sit = sd->vd.dead_sit = 0;
+ if (pc_isdead(sd)) {
+ sd->state.dead_sit = sd->vd.dead_sit = 0;
+ clif->party_dead_notification(sd);
+ } else {
+ sd->state.dead_sit = sd->vd.dead_sit = 0;
+ }
}
/**