From: Holger Schemel Date: Sun, 8 Dec 2024 14:48:48 +0000 (+0100) Subject: fixed playing BD engine levels if preferred network player changed X-Git-Tag: 4.4.0.0-test-6~27 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d36f101c36746fc6f8888396411b02c98c1d9109;p=rocksndiamonds.git fixed playing BD engine levels if preferred network player changed --- 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;