Minor bugfix

Ensures light is properly removed from source tile if Tether is somehow removed or destroyed. Re-enables missing files.
This commit is contained in:
Haha26315
2022-09-12 20:18:50 -04:00
parent 14e826e1cd
commit 8b3dbd6b90
2 changed files with 4 additions and 0 deletions
@@ -103,11 +103,13 @@
/obj/machinery/safety_tether/Destroy()
QDEL_NULL(radio)
GLOB.safety_tethers_list -= src
light_source.set_light(0)
. = ..()
/obj/machinery/safety_tether/doMove(atom/destination)
. = ..()
//ensures light is properly centered around the tether. Removes lighting system's pixel approximation that breaks it.
light_source.set_light(0)
light_source = get_turf(src)
return .
+2
View File
@@ -3199,6 +3199,7 @@
#include "hyperstation\code\modules\food_and_drinks\recipes\drinks_recipes.dm"
#include "hyperstation\code\modules\hydroponics\grown\kalyna.dm"
#include "hyperstation\code\modules\integrated_electronics\input.dm"
#include "hyperstation\code\modules\jobs\jobs.dm"
#include "hyperstation\code\modules\jobs\job_types\_job.dm"
#include "hyperstation\code\modules\jobs\job_types\civilian.dm"
#include "hyperstation\code\modules\jobs\job_types\job_alt_titles.dm"
@@ -3209,6 +3210,7 @@
#include "hyperstation\code\modules\mining\equipment\survival_pod.dm"
#include "hyperstation\code\modules\mob\mob_helpers.dm"
#include "hyperstation\code\modules\mob\dead\new_player\cosmetic_parts.dm"
#include "hyperstation\code\modules\mob\dead\new_player\roleplay.dm"
#include "hyperstation\code\modules\mob\dead\new_player\sprite_accessories.dm"
#include "hyperstation\code\modules\mob\living\status_indicators.dm"
#include "hyperstation\code\modules\mob\living\carbon\carbon.dm"