This bug only happened in certain special cases where the laser beam
had already touched a tile with DF style steel walls (from a side or
an angle where it cannot pass) and later touching the same tile again
from a different side or angle where it can pass (but without having
touched another DF steel wall on any other tile in between).
if (rf)
DrawLaser(rf - 1, DL_LASER_ENABLED);
rf = laser.num_edges;
+
+ if (!IS_DF_WALL_STEEL(element))
+ {
+ // only used for scanning DF steel walls; reset for all other elements
+ last_LX = 0;
+ last_LY = 0;
+ last_hit_mask = 0;
+ }
}
#if 0