X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Ft_items.qc;h=28ea1add9f998c8b52f9f463d6e7ca8bc73f50d2;hp=04c97948ebb7db6135f9439f17b3c5a5545299fa;hb=69eda62d02bc02ff50547bad514af3f7ce487413;hpb=6c27fe90b0454df3dbf7b098bc554fcb5eaa75d0 diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index 04c97948eb..28ea1add9f 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -746,14 +746,14 @@ float Item_GiveAmmoTo(entity item, entity player, int resource_type, float ammom { return false; } - GiveResourceWithLimit(player, resource_type, amount, ammomax); + GiveOrTakeResourceWithLimit(player, resource_type, amount, ammomax); return true; } if (g_weapon_stay != 2) { return false; } - GiveResourceWithLimit(player, resource_type, amount, min(amount, ammomax)); + GiveOrTakeResourceWithLimit(player, resource_type, amount, min(amount, ammomax)); return true; }