mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Typecheck all return_air calls (#15363)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user