don't send blank 6x5F commands when items are skipped

This commit is contained in:
Martin Michelsen
2023-11-03 21:23:17 -07:00
parent cbfcbe16f9
commit f63b4bd88b
2 changed files with 17 additions and 4 deletions
+1
View File
@@ -192,6 +192,7 @@ void Lobby::add_client(shared_ptr<Client> c, ssize_t required_client_id) {
for (size_t x = 0; x < count; x++) {
inv.items[x].data.id = this->generate_item_id(c->lobby_client_id);
}
this->log.info("Assigned item IDs for joining player %zd", index);
p->print_inventory(stderr, c->version(), s->item_name_index);
}