From fcfcd148ee92fae7041faebeb5e95d5c5977a495 Mon Sep 17 00:00:00 2001 From: Phantastic-Swan Date: Wed, 6 Aug 2025 16:05:57 +0200 Subject: [PATCH] fixes the bug where a space heater would not work after being turned off and on again. Peculiar, because IRL this usually makes everything work --- code/game/machinery/spaceheater.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/spaceheater.dm b/code/game/machinery/spaceheater.dm index 2d2274894b..abb5b2769a 100644 --- a/code/game/machinery/spaceheater.dm +++ b/code/game/machinery/spaceheater.dm @@ -71,7 +71,7 @@ if(!on || !is_operational()) if (on) // If it's broken, turn it off too on = FALSE - return PROCESS_KILL + return if(cell && cell.charge > 1 / efficiency) var/turf/L = loc @@ -85,7 +85,7 @@ else on = FALSE update_icon() - return PROCESS_KILL + return /obj/machinery/space_heater/proc/PerformHeating(turf/L) if(!istype(L)) @@ -223,6 +223,8 @@ update_icon() if (on) SSair.start_processing_machine(src) + else + SSair.stop_processing_machine(src) . = TRUE if("mode") setMode = params["mode"]