diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index 1ee3b315fcb..6986e35980f 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -189,11 +189,12 @@ GLOBAL_LIST_EMPTY(station_turfs) // We don't want to block ourselves or consider any ignored atoms. if((content == source_atom) || (content in ignore_atoms)) continue - var/atom/atom_content = content // If the thing is dense AND we're including mobs or the thing isn't a mob AND if there's a source atom and - // it cannot pass through the thing on the turf, we consider the turf blocked. - if(atom_content.density && (!exclude_mobs || !ismob(atom_content)) && (source_atom && !atom_content.CanPass(source_atom, src))) + // it cannot pass through the thing on the turf, we consider the turf blocked. + if(atom_content.density && (!exclude_mobs || !ismob(atom_content))) + if(source_atom && atom_content.CanPass(source_atom, src)) + continue return TRUE return FALSE