Skip to content

Commit 4739e8f

Browse files
authored
Fixes constant temperature runtimes (#37467)
1 parent 351d6e5 commit 4739e8f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

code/game/objects/objs.dm

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ var/global/list/reagents_to_always_log = list(AMUTATIONTOXIN, CYANIDE, CHEFSPECI
175175

176176
if(handle_item_attack(W, user))
177177
return
178-
178+
179179
if(emag_check(W,user))
180180
. = 1
181-
181+
182182
if(can_take_pai && istype(W, /obj/item/device/paicard))
183183
if(integratedpai)
184184
to_chat(user, "<span class = 'notice'>There's already a Personal AI inserted.</span>")
@@ -467,9 +467,7 @@ var/global/list/reagents_to_always_log = list(AMUTATIONTOXIN, CYANIDE, CHEFSPECI
467467
var/datum/gas_mixture/G = return_air()
468468
if(!G)
469469
return
470-
while(G.temperature >= (autoignition_temperature * 0.75))
471-
if(!G)
472-
break
470+
while(G && G.temperature >= (autoignition_temperature * 0.75))
473471
if(!smoking)
474472
add_particles(PS_SMOKE)
475473
smoking = TRUE

0 commit comments

Comments
 (0)