Skip to content

Commit

Permalink
Experimental sniper runtime fix (#4950)
Browse files Browse the repository at this point in the history
# About the pull request
Fixes(?) below


![image](https://github.com/cmss13-devs/cmss13/assets/41448081/21a757b2-05e1-44b9-be0d-5c1044cbe296)

There are multiple possible causes, will look into further if this
runtime pops up again
  • Loading branch information
Zonespace27 committed Nov 19, 2023
1 parent 5f3331f commit e398d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/projectiles/guns/specialist/sniper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
target.overlays -= lockon_direction_icon
qdel(laser_beam)

if(!check_can_use(target, TRUE))
if(!check_can_use(target, TRUE) || target.is_dead())
return

var/obj/projectile/aimed_proj = sniper_rifle.in_chamber
Expand Down

0 comments on commit e398d93

Please sign in to comment.