From d36f101c36746fc6f8888396411b02c98c1d9109 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 8 Dec 2024 15:48:48 +0100 Subject: [PATCH] fixed playing BD engine levels if preferred network player changed --- src/game.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/game.c b/src/game.c index af54fecc..2ae3cf0d 100644 --- a/src/game.c +++ b/src/game.c @@ -1775,6 +1775,11 @@ static void InitPlayerField(int x, int y, int element, boolean init_game) Tile[x][y] = EL_PLAYER_1; } } + else if (element < EL_PLAYER_1 || element > EL_PLAYER_4) + { + // needed for BD engine with preferred player other than first player + Tile[x][y] = GET_PLAYER_ELEMENT(element); + } if (init_game) { @@ -1886,6 +1891,12 @@ static void InitField(int x, int y, boolean init_game) case EL_PLAYER_2: case EL_PLAYER_3: case EL_PLAYER_4: + case EL_BDX_INBOX: + case EL_BDX_PLAYER: + case EL_BDX_PLAYER_WITH_BOMB: + case EL_BDX_PLAYER_WITH_ROCKET_LAUNCHER: + case EL_BDX_PLAYER_GLUED: + case EL_BDX_PLAYER_SCANNED: InitPlayerField(x, y, element, init_game); break; -- 2.34.1