fix next item ID set incorrectly when joining a persistent game

This commit is contained in:
Martin Michelsen
2023-12-25 16:59:22 -08:00
parent 441457a873
commit 7c9309f6c5
4 changed files with 10 additions and 21 deletions
+2 -6
View File
@@ -1957,7 +1957,7 @@ static void on_quest_loaded(shared_ptr<Lobby> l) {
lc->use_default_bank();
lc->create_challenge_overlay(lc->version(), l->quest->challenge_template_index, s->level_table);
lc->log.info("Created challenge overlay");
l->assign_inventory_and_bank_item_ids(lc, true);
l->assign_inventory_and_bank_item_ids(lc);
}
}
}
@@ -3536,7 +3536,7 @@ static void on_DF_BB(shared_ptr<Client> c, uint16_t command, uint32_t, string& d
lc->use_default_bank();
lc->create_challenge_overlay(lc->version(), l->quest->challenge_template_index, s->level_table);
lc->log.info("Created challenge overlay");
l->assign_inventory_and_bank_item_ids(lc, true);
l->assign_inventory_and_bank_item_ids(lc);
}
}
@@ -4270,10 +4270,6 @@ static void on_6F(shared_ptr<Client> c, uint16_t command, uint32_t, string& data
}
c->config.clear_flag(Client::Flag::LOADING);
if (command == 0x006F) {
l->assign_inventory_and_bank_item_ids(c, true);
}
send_server_time(c);
if (l->base_version == Version::BB_V4) {
send_set_exp_multiplier(l);