Skip to content

Commit

Permalink
Fixes 9mm gun sprite going invisible
Browse files Browse the repository at this point in the history
Fixes the pistol becoming invisible when removing the magazine.
  • Loading branch information
Jasorn committed May 9, 2024
1 parent 32b0703 commit c3c9e16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/modules/projectiles/guns/projectile/pistol.dm
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@
/obj/item/gun/projectile/pistol/update_icon()
..()
if(!(ammo_magazine && ammo_magazine.stored_ammo.len))
icon_state = "[icon_state]-e"
icon_state = "[initial(icon_state)]-e"
else
icon_state = "pistol"
icon_state = "[initial(icon_state)]"

/obj/item/gun/projectile/pirate
name = "zip gun"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ delete-after: True
# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit.
# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog.
changes:
- bugfix: "Allows ghosts to examine ore box contents."
- bugfix: "Fixes the 9mm pistol becoming invisible when removing the magazine."

0 comments on commit c3c9e16

Please sign in to comment.