summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-11-26 18:29:16 -0500
committerGitHub <noreply@github.com>2016-11-26 18:29:16 -0500
commitf604a13e791eecdef273d517f7f6f566383cde28 (patch)
treea800f235d032eb5434761cec0a47efaf775aa0a0 /src/map/clif.cpp
parent8c380d5b71de0c60866fdd95c6e8d1a54459123f (diff)
parent6d5919b4f782adc453106312c394cf1b7dd9e58f (diff)
downloadtmwa-f604a13e791eecdef273d517f7f6f566383cde28.tar.gz
tmwa-f604a13e791eecdef273d517f7f6f566383cde28.tar.bz2
tmwa-f604a13e791eecdef273d517f7f6f566383cde28.tar.xz
tmwa-f604a13e791eecdef273d517f7f6f566383cde28.zip
Merge pull request #226 from mekolat/settilesv16.11.27
Implement SMSG_MAP_SET_TILES_TYPE
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r--src/map/clif.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index 0bc6b8a..57c9dcb 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -3925,6 +3925,24 @@ void clif_remote_command(dumb_ptr<map_session_data> sd, XString cmd)
clif_send(buf, sd, SendWho::SELF, wrap<ClientVersion>(6));
}
+void clif_update_collision(dumb_ptr<map_session_data> sd, short x1, short y1,
+ short x2, short y2, MapName map_name, int mask)
+{
+ nullpo_retv(sd);
+
+ Packet_Fixed<0x0231> fixed_231;
+ fixed_231.x1 = x1;
+ fixed_231.y1 = y1;
+ fixed_231.x2 = x2;
+ fixed_231.y2 = y2;
+ fixed_231.mask = mask;
+ fixed_231.unused_layer = 0;
+ fixed_231.map = map_name;
+ Buffer buf = create_fpacket<0x0231, 34>(fixed_231);
+
+ clif_send(buf, sd, SendWho::SELF, wrap<ClientVersion>(7));
+}
+
void clif_change_music(dumb_ptr<map_session_data> sd, XString music)
{
nullpo_retv(sd);