diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-05-22 13:09:14 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-06-20 06:52:33 -0400 |
commit | 08809eeb1db043ac72ca8a64f74e9f5ed6a54631 (patch) | |
tree | e428ef99dff34cfce275038af64eb367a489dbed /src/map/clif.cpp | |
parent | ef9eb6bde90ec1d9d175b6481935cb3bd67d6c6c (diff) | |
download | tmwa-08809eeb1db043ac72ca8a64f74e9f5ed6a54631.tar.gz tmwa-08809eeb1db043ac72ca8a64f74e9f5ed6a54631.tar.bz2 tmwa-08809eeb1db043ac72ca8a64f74e9f5ed6a54631.tar.xz tmwa-08809eeb1db043ac72ca8a64f74e9f5ed6a54631.zip |
add map mask support
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r-- | src/map/clif.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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<map_session_data> 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<block_list> bl, XString msg) clif_send(buf, bl, SendWho::AREA, MIN_CLIENT_VERSION); } +void clif_send_mask(dumb_ptr<map_session_data> 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); +} + /*========================================== * *------------------------------------------ |