From 9cd9cfa8dcc408b5037e4693f5520fc424240e21 Mon Sep 17 00:00:00 2001 From: gumi Date: Sun, 27 Nov 2016 13:25:54 -0500 Subject: force sending .gat extension for SMSG_SET_TILES_TYPE --- src/map/clif.cpp | 4 +++- tools/protocol.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 57c9dcb..9518504 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -3930,6 +3930,8 @@ void clif_update_collision(dumb_ptr sd, short x1, short y1, { nullpo_retv(sd); + VString<15> gat_name = STRPRINTF("%s.gat"_fmt, map_name); + Packet_Fixed<0x0231> fixed_231; fixed_231.x1 = x1; fixed_231.y1 = y1; @@ -3937,7 +3939,7 @@ void clif_update_collision(dumb_ptr sd, short x1, short y1, fixed_231.y2 = y2; fixed_231.mask = mask; fixed_231.unused_layer = 0; - fixed_231.map = map_name; + fixed_231.map = gat_name; Buffer buf = create_fpacket<0x0231, 34>(fixed_231); clif_send(buf, sd, SendWho::SELF, wrap(7)); diff --git a/tools/protocol.py b/tools/protocol.py index 7a5542a..1a87263 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -4806,7 +4806,7 @@ def build_context(): at(8, u16, 'y2'), at(10, u32, 'mask'), at(14, u32, 'unused layer'), - at(18, map_name, 'map'), + at(18, str16, 'map'), ], fixed_size=34, pre=[NOTHING], -- cgit v1.2.3-60-g2f50