Skip to content

Commit

Permalink
issue with button cleanup..
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Jun 23, 2024
1 parent fe272e4 commit 96e1285
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions code/datums/action.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@
if(owner)
UnregisterSignal(owner, COMSIG_PARENT_QDELETING)
owner = null
button.moved = FALSE //so the button appears in its normal position when given to another owner.
button.locked = FALSE
button.id = null
if(button)
button.moved = FALSE //so the button appears in its normal position when given to another owner.
button.locked = FALSE
button.id = null

/datum/action/proc/Trigger()
if(!IsAvailable())
Expand Down
4 changes: 2 additions & 2 deletions code/modules/projectiles/guns/ballistic/smg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ EMPTY_GUN_HELPER(automatic/smg/cm5)
)
)

//default_attachments = list(/obj/item/attachment/foldable_stock)
default_attachments = list(/obj/item/attachment/foldable_stock)

/obj/item/gun/ballistic/automatic/smg/skm_carbine/inteq
name = "\improper SKM-44v Mongrel"
Expand Down Expand Up @@ -349,4 +349,4 @@ EMPTY_GUN_HELPER(automatic/smg/cm5)
/obj/item/attachment/foldable_stock/inteq
)

//default_attachments = list(/obj/item/attachment/foldable_stock/inteq)
default_attachments = list(/obj/item/attachment/foldable_stock/inteq)

0 comments on commit 96e1285

Please sign in to comment.