From: Holger Schemel Date: Fri, 19 May 2023 10:19:01 +0000 (+0200) Subject: improved reflecting laser by slope in corners in MM engine X-Git-Tag: 4.3.6.0~9 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=108c5907f746e25316e76b3c94daf6a8ae85b66b improved reflecting laser by slope in corners in MM engine --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 6e04d476..24507681 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -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 ||