1
This commit is contained in:
parent
9d74243158
commit
1fd175e5f5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user