summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-03-05 11:22:35 -0500
committergumi <git@gumi.ca>2018-03-05 11:43:44 -0500
commit3b7090af45546b22c9ec8e72a2b7dd06fa9f66f7 (patch)
tree7ed09d204cb21e0506dfc83ad18f996fad18dd5e /src
parentb715733df6e93ca981b976d667809ac3bc60928f (diff)
downloadtmwa-3b7090af45546b22c9ec8e72a2b7dd06fa9f66f7.tar.gz
tmwa-3b7090af45546b22c9ec8e72a2b7dd06fa9f66f7.tar.bz2
tmwa-3b7090af45546b22c9ec8e72a2b7dd06fa9f66f7.tar.xz
tmwa-3b7090af45546b22c9ec8e72a2b7dd06fa9f66f7.zip
ensure the player looks dead if dead while warping
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index 0a08def..5f33e8e 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -1203,6 +1203,14 @@ void clif_changemap(dumb_ptr<map_session_data> sd, MapName mapname, int x, int y
if(sd->bl_m->mask > 0)
clif_send_mask(sd, sd->bl_m->mask);
+
+ if (pc_isdead(sd))
+ {
+ Packet_Fixed<0x0080> fixed_80;
+ fixed_80.block_id = sd->bl_id;
+ fixed_80.type = BeingRemoveWhy::DEAD;
+ send_fpacket<0x0080, 7>(s, fixed_80);
+ }
}
/*==========================================