ignore duplicate item pickup requests

This commit is contained in:
Martin Michelsen
2023-10-29 16:49:49 -07:00
parent 4e2e423a4b
commit 5ec969ece3
4 changed files with 21 additions and 16 deletions
+1 -8
View File
@@ -3420,14 +3420,7 @@ shared_ptr<Lobby> create_game_generic(
return nullptr;
}
// TODO: We disable item tracking for battle and challenge mode because
// players' inventories are reset when they start the quests, and the server
// is not notified when this happens. We'll have to implement this anyway for
// BB, but for now we ignore it.
bool item_tracking_enabled =
(c->version() == GameVersion::BB) ||
(s->item_tracking_enabled && (mode == GameMode::NORMAL || mode == GameMode::SOLO));
bool item_tracking_enabled = (c->version() == GameVersion::BB) || s->item_tracking_enabled;
// Only disable drops if the config flag is set and are playing regular
// multi-mode. Drops are still enabled for battle and challenge modes.
bool drops_enabled = s->behavior_enabled(s->enable_drops_behavior) || (mode != GameMode::NORMAL);