X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=7c6b4cff32b706903613c8f86259be98d5aef095;hb=8ace29ddd779d0de44b982dfca8acc1240cb8941;hp=837d41036992abab6a31ddacf701f4de7c409f49;hpb=d9f39115e59293918996baa8236ee3784d80a313;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 837d4103..7c6b4cff 100644 --- a/src/game.c +++ b/src/game.c @@ -11861,6 +11861,21 @@ int DigField(struct PlayerInfo *player, if (!player->key[EM_GATE_GRAY_ACTIVE_NR(element)]) return MP_NO_ACTION; } + else if (IS_EMC_GATE(element)) + { + if (!player->key[EMC_GATE_NR(element)]) + return MP_NO_ACTION; + } + else if (IS_EMC_GATE_GRAY(element)) + { + if (!player->key[EMC_GATE_GRAY_NR(element)]) + return MP_NO_ACTION; + } + else if (IS_EMC_GATE_GRAY_ACTIVE(element)) + { + if (!player->key[EMC_GATE_GRAY_ACTIVE_NR(element)]) + return MP_NO_ACTION; + } else if (IS_SP_PORT(element)) { if (element == EL_SP_GRAVITY_PORT_LEFT ||