From 08809eeb1db043ac72ca8a64f74e9f5ed6a54631 Mon Sep 17 00:00:00 2001 From: mekolat Date: Fri, 22 May 2015 13:09:14 -0400 Subject: add map mask support --- src/map/clif.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/map/clif.cpp') diff --git a/src/map/clif.cpp b/src/map/clif.cpp index db5ecd2..35cc463 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -1155,6 +1155,9 @@ void clif_changemap(dumb_ptr sd, MapName mapname, int x, int y fixed_91.x = x; fixed_91.y = y; send_fpacket<0x0091, 22>(s, fixed_91); + + if(sd->bl_m->mask > 0) + clif_send_mask(sd, sd->bl_m->mask); } /*========================================== @@ -3873,6 +3876,19 @@ void clif_message(dumb_ptr bl, XString msg) clif_send(buf, bl, SendWho::AREA, MIN_CLIENT_VERSION); } +void clif_send_mask(dumb_ptr sd, int map_mask) +{ + nullpo_retv(sd); + if(sd->client_version < 2) + return; + + Packet_Fixed<0x0226> fixed_226; + fixed_226.mask = map_mask; + + Buffer buf = create_fpacket<0x0226, 10>(fixed_226); + send_buffer(sd->sess, buf); +} + /*========================================== * *------------------------------------------ -- cgit v1.2.3-70-g09d2