From 1fd175e5f534cfe9e9094d11e15f03ab0ef87f71 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 25 Nov 2022 18:27:37 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 8e4a748c..929c4222 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -4461,7 +4461,10 @@ void Human::DropWeapon(int weapon_idx, int num) } } } - if (create_loot) { + if (create_loot || + weapon_idx == GUN_SLOT0 || + weapon_idx == GUN_SLOT1 || + weapon_idx == GUN_SLOT2) { a8::Vec2 dir = a8::Vec2::UP; dir.Rotate(a8::RandAngle()); room->CreateLoot(weapon_id, GetPos() + dir * (40 + rand() % 50), 1, 1);