Files
Polaris/code/game/objects/effects
Lancer411 2882576358 Fix for infinite loop in smokeFlow() proc.
When chemical grenade being activated on any unsimulated turf (for example a space turf), smokeFlow() starts infinite while loop, overloading the server.
With the only one unsimulated turf in pending list while() loop can't finish itself and for() loop can't start.
This fix makes chemical grenades being able to explode in space without server going in infinite loop.

Also fixed issue with smoke being able to pass through glass walls with help of c_airblock() proc. That's the best solution I could come up with.
Zone check code was useless because every single turf besides walls (which allready checked) and unsimulated turfs have it, making algorithm believe that turfs behind the glass wall are being reachable by chemsmoke.
I don't know if it was intended not to spread smoke in airless or unsimulated areas, but a bunch of airless simulated floor tiles in space is good enough for this algorithm to start spreading smoke around.

P.S. this algorithm is good for large, open areas and horrible in narrow maint tunnels. It is creating only a single cloud of smoke for 50/50/50 recipie in 1 tile wide tunnel.
2014-08-13 06:26:30 +08:00
..
2014-07-22 19:52:12 +01:00
2014-07-22 19:52:12 +01:00
2014-07-22 19:52:12 +01:00
2012-08-29 22:59:53 +00:00
2014-07-22 19:52:12 +01:00
2012-09-05 22:44:48 +00:00
2014-07-22 19:52:12 +01:00
2014-07-22 19:52:12 +01:00