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
@@ -62,8 +62,6 @@
/obj/structure/pit/return_air()
if(open && loc)
return loc.return_air()
else
return null
/obj/structure/pit/proc/digout(mob/escapee)
var/breakout_time = 1 //2 minutes by default
@@ -366,6 +366,7 @@ obj/structure/ex_act(severity)
// giving it a chance to mix its internal air supply with the turf it is
// currently on.
/obj/structure/transit_tube_pod/proc/mix_air()
if(!loc) return
var/datum/gas_mixture/environment = loc.return_air()
//note that share_ratio assumes both gas mixes have the same volume,