mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 00:20:42 +01:00
Remove Modular Computer Hard Delete (#21590)
Modular computers had a hard delete caused by having any program running at the time the device was deleted.
This commit is contained in:
@@ -103,10 +103,12 @@ ABSTRACT_TYPE(/datum/computer_file/program)
|
||||
crash_with("Comp was not sent for [src.filename]")
|
||||
|
||||
/datum/computer_file/program/Destroy()
|
||||
if(!QDELETED(computer))
|
||||
if(computer)
|
||||
computer.idle_threads -= src
|
||||
computer.enabled_services -= src
|
||||
set_computer(null)
|
||||
UnregisterSignal(computer, COMSIG_QDELETING)
|
||||
computer = null
|
||||
|
||||
. = ..()
|
||||
GC_TEMPORARY_HARDDEL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user