Skip to content

Commit

Permalink
Fixes pointblanks (#4261)
Browse files Browse the repository at this point in the history
# About the pull request

These are very different when unnested.

Fixes #4260

# Explain why it's good for the game

Bug bad and I died because I couldn't PB :(


# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog

:cl: Morrow
fix: Fixed pointblanks
/:cl:
  • Loading branch information
morrowwolf authored Aug 27, 2023
1 parent d9f21ba commit d8d712d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8d712d

Please sign in to comment.