projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a7e9588
)
improved reflecting laser by slope in corners in MM engine
author
Holger Schemel
<info@artsoft.org>
Fri, 19 May 2023 10:19:01 +0000
(12:19 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 19 May 2023 10:19:11 +0000
(12:19 +0200)
src/game_mm/mm_game.c
patch
|
blob
|
history
diff --git
a/src/game_mm/mm_game.c
b/src/game_mm/mm_game.c
index 6e04d476b92f2f68f8fa0d0b2906dab5cdba3e18..24507681889d1becc70e053b776c2f96cee43913 100644
(file)
--- a/
src/game_mm/mm_game.c
+++ b/
src/game_mm/mm_game.c
@@
-1209,14
+1209,10
@@
static void ScanLaser(void)
break;
}
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)
{
// 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);
// 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))
{
}
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 ||
if (hit_mask == HIT_MASK_LEFT ||
hit_mask == HIT_MASK_RIGHT ||
hit_mask == HIT_MASK_TOP ||