fixed bug with gray ball creating wrong game elements in MM engine
authorHolger Schemel <info@artsoft.org>
Fri, 17 Feb 2023 19:33:12 +0000 (20:33 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 17 Feb 2023 19:33:12 +0000 (20:33 +0100)
src/game_mm/mm_game.c

index 27aada30a7c2d95fd5f320996e1163b06c391df5..e822706ff9a00902ee49de8dc9fd5115aef8d05a 100644 (file)
@@ -3491,7 +3491,7 @@ static void GameActions_MM_Ext(void)
 
       int new_element = native_mm_level.ball_content[element_pos];
 
-      Store[ELX][ELY] = new_element + RND(get_num_elements(new_element));
+      Store[ELX][ELY] = get_rotated_element(new_element, RND(16));
       Store2[ELX][ELY] = TRUE;
     }