mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Runtime fix: usr = 0???
runtime error: Cannot read 0.item_use_icon proc name: remove gun icons (/client/proc/remove_gun_icons) source file: targeting.dm,273 usr: 0 src: Vivalas (/client) call stack: Vivalas (/client): remove gun icons() the taser gun (/obj/item/weapon/gun/energy/taser): dropped(Jonathon Sommer (/mob/living/carbon/human)) Jonathon Sommer (/mob/living/carbon/human): drop r hand(null) Jonathon Sommer (/mob/living/carbon/human): update canmove() Jonathon Sommer (/mob/living/carbon/human): Weaken(5) Jonathon Sommer (/mob/living/carbon/human): Weaken(5) Jonathon Sommer (/mob/living/carbon/human): apply effect(5, "weaken", 0) Jonathon Sommer (/mob/living/carbon/human): apply effects(0, 5, 0, 0, 0, 0, 0, 0, 0)
This commit is contained in:
@@ -269,7 +269,7 @@ client/proc/add_gun_icons()
|
|||||||
screen += usr.gun_run_icon
|
screen += usr.gun_run_icon
|
||||||
|
|
||||||
client/proc/remove_gun_icons()
|
client/proc/remove_gun_icons()
|
||||||
if(isnull(usr)) return 1 // Runtime prevention on N00k agents spawning with SMG
|
if(!usr) return 1 // Runtime prevention on N00k agents spawning with SMG
|
||||||
screen -= usr.item_use_icon
|
screen -= usr.item_use_icon
|
||||||
screen -= usr.gun_move_icon
|
screen -= usr.gun_move_icon
|
||||||
if (target_can_move)
|
if (target_can_move)
|
||||||
|
|||||||
Reference in New Issue
Block a user