From eae72b14f238717d29fbb7307ffc2d3421e09cb7 Mon Sep 17 00:00:00 2001 From: necromanceranne <40847847+necromanceranne@users.noreply.github.com> Date: Thu, 15 Oct 2020 15:13:05 +1100 Subject: [PATCH] Fixes weapons with standard bolts, like Mosin Nagants, getting a chambered bullet when they shouldn't. (#54290) Fixes bolt action guns getting phantom bullets chambered upon initialization. --- code/modules/projectiles/guns/ballistic.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/projectiles/guns/ballistic.dm b/code/modules/projectiles/guns/ballistic.dm index 818fc8734bb..8dd659aeb21 100644 --- a/code/modules/projectiles/guns/ballistic.dm +++ b/code/modules/projectiles/guns/ballistic.dm @@ -98,7 +98,10 @@ return if (!magazine) magazine = new mag_type(src) - chamber_round(replace_new_round = TRUE) + if(bolt_type == BOLT_TYPE_STANDARD) + chamber_round() + else + chamber_round(replace_new_round = TRUE) update_icon() /obj/item/gun/ballistic/vv_edit_var(vname, vval)