Update DEV.md

This commit is contained in:
GenZmeY 2022-11-02 13:27:19 +03:00 committed by GitHub
parent b8bc4a58eb
commit 0c649b444e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
DEV.md
View File

@ -148,10 +148,11 @@ public function ThrowWeaponOnDeath()
{ {
local KFWeapon KFW; local KFWeapon KFW;
if (InvManager != None) if (InvManager == None) return;
foreach InvManager.InventoryActors(class'KFWeapon', KFW)
if (KFW != None && KFW.bDropOnDeath && KFW.CanThrow()) foreach InvManager.InventoryActors(class'KFWeapon', KFW)
KFP.TossInventory(KFW); if (KFW.bDropOnDeath && KFW.CanThrow())
KFP.TossInventory(KFW);
} }
``` ```