[MIRROR] Fixes null bullets from being fired after they're deleted (#7102)
* Fixes null bullets from being fired after they're deleted (#38437) * Adds handle_atom_del check to if deleted bullets are equal to ammo type and chambered round. * works for me * Update _box_magazine.dm * Fixes null bullets from being fired after they're deleted
This commit is contained in:
committed by
kevinz000
parent
95a9942bdc
commit
773ba43974
@@ -131,4 +131,8 @@
|
||||
var/turf_mag = get_turf(src)
|
||||
for(var/obj/item/ammo in stored_ammo)
|
||||
ammo.forceMove(turf_mag)
|
||||
stored_ammo -= ammo
|
||||
stored_ammo -= ammo
|
||||
|
||||
/obj/item/ammo_box/magazine/handle_atom_del(atom/A)
|
||||
stored_ammo -= A
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user