mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #14604 from VOREStation/upstream-merge-8975
[MIRROR] fixes a runtime in huds deleting and the gun deletion on login issue
This commit is contained in:
committed by
CHOMPStation2
parent
5d0a8ee8fb
commit
04b32c7886
@@ -205,7 +205,7 @@ var/list/global_huds = list(
|
|||||||
|
|
||||||
/datum/hud/Destroy()
|
/datum/hud/Destroy()
|
||||||
. = ..()
|
. = ..()
|
||||||
qdel_null(minihuds)
|
QDEL_NULL_LIST(minihuds)
|
||||||
grab_intent = null
|
grab_intent = null
|
||||||
hurt_intent = null
|
hurt_intent = null
|
||||||
disarm_intent = null
|
disarm_intent = null
|
||||||
@@ -224,7 +224,9 @@ var/list/global_huds = list(
|
|||||||
other_important = null
|
other_important = null
|
||||||
hotkeybuttons = null
|
hotkeybuttons = null
|
||||||
// item_action_list = null // ?
|
// item_action_list = null // ?
|
||||||
QDEL_LIST(ammo_hud_list)
|
for (var/x in ammo_hud_list)
|
||||||
|
remove_ammo_hud(mymob, x)
|
||||||
|
ammo_hud_list = null
|
||||||
mymob = null
|
mymob = null
|
||||||
|
|
||||||
/datum/hud/proc/hidden_inventory_update()
|
/datum/hud/proc/hidden_inventory_update()
|
||||||
@@ -502,4 +504,4 @@ var/list/global_huds = list(
|
|||||||
///Update the ammo hud related to the gun G
|
///Update the ammo hud related to the gun G
|
||||||
/datum/hud/proc/update_ammo_hud(mob/living/user, obj/item/weapon/gun/G)
|
/datum/hud/proc/update_ammo_hud(mob/living/user, obj/item/weapon/gun/G)
|
||||||
var/obj/screen/ammo/ammo_hud = ammo_hud_list[G]
|
var/obj/screen/ammo/ammo_hud = ammo_hud_list[G]
|
||||||
ammo_hud?.update_hud(user, G)
|
ammo_hud?.update_hud(user, G)
|
||||||
|
|||||||
Reference in New Issue
Block a user