X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_mm%2Fmm_game.c;h=48bc9a5b875724b6d3cd4e2190b32c17e5fb222f;hb=633d0244c9dfaf509bfdd5ea3bc9d37cfac7ffa5;hp=45c65634a9985556c75420f04edc463ead080198;hpb=7f33353a6e8ce4dc9a3b7a604a4c7deb836544f7;p=rocksndiamonds.git diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 45c65634..48bc9a5b 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -1120,6 +1120,14 @@ void ScanLaser(void) 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