add names in show-battle-params

This commit is contained in:
Martin Michelsen
2025-08-06 21:03:20 -07:00
parent ab38a58e39
commit 5c84581978
6 changed files with 51 additions and 17 deletions
+2 -4
View File
@@ -2252,8 +2252,7 @@ static asio::awaitable<void> on_pick_up_item_generic(
// This can happen if the network is slow, and the client tries to pick up
// the same item multiple times. Or multiple clients could try to pick up
// the same item at approximately the same time; only one should get it.
l->log.warning_f("Player {} requests to pick up {:08X}, but the item does not exist; dropping command",
client_id, item_id);
l->log.warning_f("Player {} requests to pick up {:08X}, but the item does not exist; dropping command", client_id, item_id);
} else {
// This is handled by the server on BB, and by the leader on other versions.
@@ -2300,8 +2299,7 @@ static asio::awaitable<void> on_pick_up_item_generic(
}
}
if (!c->login->account->check_user_flag(Account::UserFlag::DISABLE_DROP_NOTIFICATION_BROADCAST) &&
(fi->flags & 0x1000)) {
if (!c->login->account->check_user_flag(Account::UserFlag::DISABLE_DROP_NOTIFICATION_BROADCAST) && (fi->flags & 0x1000)) {
uint32_t pi = fi->data.primary_identifier();
bool should_send_game_notif, should_send_global_notif;
if (is_v1_or_v2(c->version()) && (c->version() != Version::GC_NTE)) {