This commit is contained in:
aozhiwei 2023-03-02 19:06:13 +08:00
parent d1164007fc
commit 220a128fd0

View File

@ -2841,6 +2841,7 @@ void Human::ProcLootWeapon(AddItemDTO& dto)
//装备 //装备
if (dto.item_meta->equip_subtype() == 1) { if (dto.item_meta->equip_subtype() == 1) {
//近战 //近战
#ifdef NEW_WEAPON_SYS
if (default_weapon.weapon_id != weapons[0].weapon_id) { if (default_weapon.weapon_id != weapons[0].weapon_id) {
return; return;
} else { } else {
@ -2852,6 +2853,7 @@ void Human::ProcLootWeapon(AddItemDTO& dto)
} }
MarkSyncActivePlayer(__FILE__, __LINE__, __func__); MarkSyncActivePlayer(__FILE__, __LINE__, __func__);
SyncAroundPlayers(__FILE__, __LINE__, __func__); SyncAroundPlayers(__FILE__, __LINE__, __func__);
#endif
} else { } else {
if (FreezeOperate()) { if (FreezeOperate()) {
return; return;