factor FloorItem struct into 6x5F format

This commit is contained in:
Martin Michelsen
2023-10-25 15:06:04 -07:00
parent 5d251361b0
commit 5f0a6f3d8e
3 changed files with 41 additions and 33 deletions
+2 -2
View File
@@ -2009,8 +2009,8 @@ void send_set_player_visibility(shared_ptr<Lobby> l, shared_ptr<Client> c,
void send_drop_item(Channel& ch, const ItemData& item,
bool from_enemy, uint8_t area, float x, float z, uint16_t entity_id) {
G_DropItem_PC_V3_BB_6x5F cmd = {
{{0x5F, 0x0B, 0x0000}, area, from_enemy, entity_id, x, z, 0, 0, item}, 0};
cmd.item_data.encode_if_mag(ch.version);
{{0x5F, 0x0B, 0x0000}, {area, from_enemy, entity_id, x, z, 0, 0, item}}, 0};
cmd.item.item.encode_if_mag(ch.version);
ch.send(0x60, 0x00, &cmd, sizeof(cmd));
}