Update radiation system for the new garbage collector.

This commit is contained in:
Leshana
2017-06-10 22:41:51 -04:00
parent 7b47590645
commit ae4458e4ae
2 changed files with 9 additions and 17 deletions
-8
View File
@@ -22,14 +22,6 @@ var/global/repository/radiation/radiation_repository = new()
src.source_turf = null
. = ..()
// TEMPORARY HACK - hard del()'ing sources is too expensive! Until we implement qdel() hints we need to override behavior here
/datum/radiation_source/finalize_qdel()
if(garbage_collector)
garbage_collector.AddTrash(src)
else
delayed_garbage |= src
// TEMPORARY HACK END
/datum/radiation_source/proc/update_rad_power(var/new_power = null)
if(new_power != null && new_power != rad_power)
rad_power = new_power