mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Optimize a couple things
This commit is contained in:
@@ -93,8 +93,7 @@
|
||||
return AIR_BLOCKED
|
||||
|
||||
var/result = 0
|
||||
for(var/mm in contents)
|
||||
var/atom/movable/M = mm
|
||||
for(var/atom/movable/M as anything in contents)
|
||||
switch(M.can_atmos_pass)
|
||||
if(ATMOS_PASS_YES)
|
||||
continue
|
||||
|
||||
@@ -71,8 +71,7 @@ If it gains pressure too slowly, it may leak or just rupture instead of explodin
|
||||
|
||||
var/fuel_to_remove = used_liquid_fuel/(fuel_objs.len*LIQUIDFUEL_AMOUNT_TO_MOL) //convert back to liquid volume units
|
||||
|
||||
for(var/O in fuel_objs)
|
||||
var/obj/effect/decal/cleanable/liquid_fuel/fuel = O
|
||||
for(var/obj/effect/decal/cleanable/liquid_fuel/fuel as anything in fuel_objs)
|
||||
if(!istype(fuel))
|
||||
fuel_objs -= fuel
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user