From: Holger Schemel Date: Tue, 8 Jun 2021 21:54:00 +0000 (+0200) Subject: added waiting for finished snapping when snapping envelope X-Git-Tag: 4.3.0.0~141 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d460859806b6ce6b89f8be69e29b6a99addb6229;p=rocksndiamonds.git added waiting for finished snapping when snapping envelope --- diff --git a/src/game.c b/src/game.c index 23fe5f91..be192e4f 100644 --- a/src/game.c +++ b/src/game.c @@ -12173,6 +12173,9 @@ void GameActions_RND(void) TEST_DrawLevelField(x, y); TestFieldAfterSnapping(x, y, element, move_direction, player_index_bit); + + if (IS_ENVELOPE(element)) + local_player->show_envelope = element; } } @@ -14330,7 +14333,10 @@ static int DigField(struct PlayerInfo *player, } else if (IS_ENVELOPE(element)) { - player->show_envelope = element; + boolean wait_for_snapping = (mode == DF_SNAP && level.block_snap_field); + + if (!wait_for_snapping) + player->show_envelope = element; } else if (element == EL_EMC_LENSES) {