Skip to content

Commit

Permalink
Removed the second free method the removal of the first one added (#8409
Browse files Browse the repository at this point in the history
)

This PR removes the second free method I accidentally added while simplifying code.
  • Loading branch information
vode-code authored Jan 26, 2024
1 parent a7a010c commit 14bb3c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/projectiles/ammunition.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@

/// special case where is the location is specified as a ammo_Casing , it will clone all relevant vars
/obj/item/ammo_casing/New(loc, ...)
. = ..()
if(istype(loc, /obj/item/ammo_casing))
var/obj/item/ammo_casing/C = loc
src.amount = 1 // otherwise duplicating the type will make Type/Prespawned start with too large an amount
if(!C.BB)
projectile_type = FALSE // this prevents spent projectiles resetting their status- this is safe because it typechecks for path, and this is not path
C.update_icon()
update_icon()
. = ..()


/obj/item/ammo_casing/attack_hand(mob/user)
Expand Down

0 comments on commit 14bb3c6

Please sign in to comment.