Skip to content

Commit

Permalink
Fixes pale fixer teleport, hopefuly
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit committed Nov 28, 2023
1 parent dac4c1d commit 6ecdf9d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,10 @@
continue
if(get_dist(src, H) < 8)
continue
potential_teleports += pick(get_adjacent_open_turfs(H))
var/list/adj_turfs = get_adjacent_open_turfs(H)
if(!LAZYLEN(adj_turfs))
continue
potential_teleports += pick(adj_turfs)
if(!LAZYLEN(potential_teleports))
return // Nowhere to run!
var/turf/target_turf = pick(potential_teleports)
Expand Down

0 comments on commit 6ecdf9d

Please sign in to comment.