mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
Sanity check for FloodFill.
This commit is contained in:
@@ -12,6 +12,10 @@ proc/FloodFill(turf/start)
|
||||
while(open.len)
|
||||
var/turf/T = pick(open)
|
||||
|
||||
if(!istype(T))
|
||||
open -= T
|
||||
continue
|
||||
|
||||
for(var/d in cardinal)
|
||||
var/turf/O = get_step(T,d)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user