improved converting BD game engine elements for R'n'D game engine
authorHolger Schemel <info@artsoft.org>
Thu, 7 Mar 2024 19:22:48 +0000 (20:22 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 7 Mar 2024 19:22:48 +0000 (20:22 +0100)
src/game.c

index df3c8b1344bb1e384b77a799c220e6245d4b97d8..8982004f7d5baf11d3a700d75060960f7d17e20a 100644 (file)
@@ -1841,6 +1841,7 @@ static void InitFieldForEngine_RND(int x, int y)
 
   // convert BD engine elements to corresponding R'n'D engine elements
   element = (element == EL_BD_EMPTY            ? EL_EMPTY :
+            element == EL_BD_PLAYER            ? EL_PLAYER_1 :
             element == EL_BD_INBOX             ? EL_PLAYER_1 :
             element == EL_BD_SAND              ? EL_SAND :
             element == EL_BD_STEELWALL         ? EL_STEELWALL :