From: Holger Schemel Date: Sat, 16 Feb 2019 09:52:55 +0000 (+0100) Subject: fixed bug with envelopes only displayed for the first player X-Git-Tag: 4.1.2.0~11 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=39ad80f8d48b103622e36e40c951a66579444767;p=rocksndiamonds.git fixed bug with envelopes only displayed for the first player --- diff --git a/src/game.c b/src/game.c index 2dcc07a4..c7589cf0 100644 --- a/src/game.c +++ b/src/game.c @@ -12180,12 +12180,17 @@ void GameActions_RND(void) DrawAllPlayers(); PlayAllPlayersSound(); - if (local_player->show_envelope != 0 && (!local_player->active || - local_player->MovPos == 0)) + for (i = 0; i < MAX_PLAYERS; i++) { - ShowEnvelope(local_player->show_envelope - EL_ENVELOPE_1); + struct PlayerInfo *player = &stored_player[i]; - local_player->show_envelope = 0; + if (player->show_envelope != 0 && (!player->active || + player->MovPos == 0)) + { + ShowEnvelope(player->show_envelope - EL_ENVELOPE_1); + + player->show_envelope = 0; + } } // use random number generator in every frame to make it less predictable