From 108c5907f746e25316e76b3c94daf6a8ae85b66b Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 19 May 2023 12:19:01 +0200 Subject: [PATCH 1/1] improved reflecting laser by slope in corners in MM engine --- src/game_mm/mm_game.c | 11 ----------- 1 file changed, 11 deletions(-) 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 || -- 2.34.1