From d8d712db6ba40c19275636f27c8503b740e091ff Mon Sep 17 00:00:00 2001 From: morrowwolf Date: Sun, 27 Aug 2023 05:17:33 -0400 Subject: [PATCH] Fixes pointblanks (#4261) # About the pull request These are very different when unnested. Fixes https://github.com/cmss13-devs/cmss13/issues/4260 # Explain why it's good for the game Bug bad and I died because I couldn't PB :( # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: Morrow fix: Fixed pointblanks /:cl: --- code/modules/projectiles/gun.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index 8cbcc99838cd..886ee30b3f1a 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -1343,10 +1343,11 @@ and you're good to go. //The following relating to bursts was borrowed from Fire code. var/check_for_attachment_fire = FALSE - if(active_attachable?.flags_attach_features & ATTACH_PROJECTILE) - check_for_attachment_fire = TRUE - else - active_attachable.activate_attachment(src, null, TRUE)//No way. + if(active_attachable) + if(active_attachable.flags_attach_features & ATTACH_PROJECTILE) + check_for_attachment_fire = TRUE + else + active_attachable.activate_attachment(src, null, TRUE)//No way. var/bullets_to_fire = 1