fixed bug when checking if end of slope is blocked by other element
authorHolger Schemel <info@artsoft.org>
Wed, 17 May 2023 10:45:40 +0000 (12:45 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 17 May 2023 10:45:40 +0000 (12:45 +0200)
src/game_mm/mm_game.c

index 3c18bcc54e317f8408f4c1e5f7269894fa618f9d..5c5619d0e8e54fc12f51f7ffa9342420323686aa 100644 (file)
@@ -1981,7 +1981,7 @@ static boolean HitElement(int element, int hit_mask)
          {
            int pos = getMaskFromElement(element_side);
 
-           if (mm_masks[pos][dx / 2][dx / 2] == 'X')
+           if (mm_masks[pos][dx / 2][dy / 2] == 'X')
              laser.overloaded = TRUE;
          }
        }