Fix a few small runtimes (#49352)

Nothing special here, mostly sanity.
Defib hud is awful, needs rewrite.
This commit is contained in:
AnturK
2020-02-16 09:40:11 +01:00
committed by GitHub
parent a6762e9eb8
commit e3fca45a78
7 changed files with 19 additions and 16 deletions
@@ -39,9 +39,10 @@
if(hotspot && istype(T) && T.air)
qdel(hotspot)
var/datum/gas_mixture/G = T.air
var/plas_amt = min(30,G.gases[/datum/gas/plasma][MOLES]) //Absorb some plasma
G.gases[/datum/gas/plasma][MOLES] -= plas_amt
absorbed_plasma += plas_amt
if(G.gases[/datum/gas/plasma])
var/plas_amt = min(30,G.gases[/datum/gas/plasma][MOLES]) //Absorb some plasma
G.gases[/datum/gas/plasma][MOLES] -= plas_amt
absorbed_plasma += plas_amt
if(G.temperature > T20C)
G.temperature = max(G.temperature/2,T20C)
G.garbage_collect()