From: Holger Schemel Date: Mon, 10 Apr 2017 06:31:27 +0000 (+0200) Subject: fixed bug when rotating beamer using new laser bitmap (MM engine) X-Git-Tag: 4.1.0.0~124 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=cc8bfd73a8efd059bfb09bed3b7394fdf6551a8e;p=rocksndiamonds.git fixed bug when rotating beamer using new laser bitmap (MM engine) --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 5a947099..55dc30bd 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -1229,6 +1229,11 @@ void DrawLaser(int start_edge, int mode) last_num_edges, start_edge); #endif + // special case when rotating first beamer: delete laser edge on beamer + // (but do not start scanning on previous edge to prevent mirror sound) + if (last_num_edges - start_edge == 1 && start_edge > 0) + DrawLaserLines(&laser.edge[start_edge - 1], 2, DL_LASER_DISABLED); + /* delete first segment from start to the first beamer */ DrawLaserExt(start_edge, last_num_edges - start_edge, DL_LASER_DISABLED); }