ignore duplicate item pickup requests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user