X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;h=c51b7ece8e596108139c1ebc94670c66497faa6a;hp=4edcf7e8c16fe8cf0e9f902014b4f35c45a6832a;hb=6687b5314f1e08eb7364c0c5d753b96db18f6089;hpb=9e4358919afd28bdb4481eaf8daf4dcd4eca3e02 diff --git a/src/game.c b/src/game.c index 4edcf7e8..c51b7ece 100644 --- a/src/game.c +++ b/src/game.c @@ -9776,7 +9776,10 @@ static void ExecuteCustomElementAction(int x, int y, int element, int page) { for (i = 0; i < MAX_PLAYERS; i++) if (action_arg_player_bits & (1 << i)) - PlayerWins(&stored_player[i]); + RemovePlayerWithCleanup(&stored_player[i]); + + if (AllPlayersGone) + PlayerWins(local_player); break; }