Skip to content

Commit

Permalink
Merge pull request #232 from mekolat/tiles
Browse files Browse the repository at this point in the history
bug roundup
  • Loading branch information
mekolat authored Nov 27, 2016
2 parents f604a13 + 872a913 commit ba4519c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v16.11.28
- revert v16.11.9
- force sending the .gat extension in SMSG_SET_TILES_TYPE
v16.11.27
- implement SMSG_SET_TILES_TYPE
v16.11.9
- fix a bug that did not decrease the npc counter on npc despawn
v16.5.12
Expand Down
4 changes: 3 additions & 1 deletion src/map/clif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3930,14 +3930,16 @@ void clif_update_collision(dumb_ptr<map_session_data> 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;
fixed_231.x2 = x2;
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<ClientVersion>(7));
Expand Down
3 changes: 0 additions & 3 deletions src/map/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,6 @@ int map_delblock(dumb_ptr<block_list> bl)
return 0;
}

if (bl->bl_type == BL::NPC)
bl->bl_m->npc_num--;

if (bl->bl_type == BL::PC)
bl->bl_m->users--;

Expand Down
2 changes: 1 addition & 1 deletion tools/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit ba4519c

Please sign in to comment.