Typecheck all return_air calls (#15363)

This commit is contained in:
Wildkins
2022-12-19 12:19:41 +01:00
committed by GitHub
parent bc3728c4e7
commit bb04ba3f87
53 changed files with 94 additions and 47 deletions
+2
View File
@@ -5,6 +5,8 @@
if (!check_rights(R_ADMIN))
return
if(!usr.loc) return
var/datum/gas_mixture/environment = usr.loc.return_air()
environment.gas[GAS_PHORON] = 0
environment.gas[GAS_NITROGEN] = 82.1472
+2 -2
View File
@@ -22,9 +22,9 @@
set name = "Cell"
if(!mob)
return
var/turf/T = mob.loc
var/turf/T = get_turf(mob)
if (!( istype(T, /turf) ))
if (!istype(T))
return
var/datum/gas_mixture/env = T.return_air()