improved reflecting laser by slope in corners in MM engine
authorHolger Schemel <info@artsoft.org>
Fri, 19 May 2023 10:19:01 +0000 (12:19 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 19 May 2023 10:19:11 +0000 (12:19 +0200)
src/game_mm/mm_game.c

index 6e04d476b92f2f68f8fa0d0b2906dab5cdba3e18..24507681889d1becc70e053b776c2f96cee43913 100644 (file)
@@ -1209,14 +1209,10 @@ static void ScanLaser(void)
       break;
     }
 
-    boolean diagonally_adjacent_hit = FALSE;
-
     // handle special case of laser hitting two diagonally adjacent elements
     // (with or without a third corner element behind these two elements)
     if ((diag_1 || diag_2) && cross_x && cross_y)
     {
-      diagonally_adjacent_hit = TRUE;
-
       // compare the two diagonally adjacent elements
       int xoffset = 2;
       int yoffset = 2 * (diag_1 ? -1 : +1);
@@ -1334,13 +1330,6 @@ static void ScanLaser(void)
     }
     else if (IS_DF_SLOPE(element))
     {
-      if (diagonally_adjacent_hit)
-      {
-       laser.overloaded = TRUE;
-
-       break;
-      }
-
       if (hit_mask == HIT_MASK_LEFT ||
          hit_mask == HIT_MASK_RIGHT ||
          hit_mask == HIT_MASK_TOP ||