mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #5971 from Lancer411/dev
Fix for infinite loop in smokeFlow() proc.
This commit is contained in:
@@ -224,24 +224,25 @@
|
||||
pending += location
|
||||
|
||||
while(pending.len)
|
||||
for(var/turf/simulated/current in pending)
|
||||
for(var/turf/current in pending)
|
||||
for(var/D in cardinal)
|
||||
var/turf/simulated/target = get_step(current, D)
|
||||
|
||||
var/turf/target = get_step(current, D)
|
||||
if(wallList)
|
||||
if(istype(target, /turf/simulated/wall))
|
||||
if(!(target in wallList))
|
||||
wallList += target
|
||||
continue
|
||||
if(!target.zone)
|
||||
continue
|
||||
|
||||
if(target in pending)
|
||||
continue
|
||||
if(target in complete)
|
||||
continue
|
||||
if(!(target in targetTurfs))
|
||||
continue
|
||||
|
||||
if(current.c_airblock(target)) //this is needed to stop chemsmoke from passing through thin window walls
|
||||
continue
|
||||
if(target.c_airblock(current))
|
||||
continue
|
||||
pending += target
|
||||
|
||||
pending -= current
|
||||
@@ -249,4 +250,4 @@
|
||||
|
||||
targetTurfs = complete
|
||||
|
||||
return
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user