fixed switching from inactive to active Supaplex terminal
authorHolger Schemel <info@artsoft.org>
Sun, 3 Jan 2016 13:04:09 +0000 (14:04 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 3 Jan 2016 13:04:09 +0000 (14:04 +0100)
src/game.c

index 388dd2e80fd5254abfbed2cfae7e745685dfb810..adc7f2d61734596f0d3e4eb014e4f0fa340d7d36 100644 (file)
@@ -13656,9 +13656,16 @@ static int DigField(struct PlayerInfo *player,
       SCAN_PLAYFIELD(xx, yy)
       {
        if (Feld[xx][yy] == EL_SP_DISK_YELLOW)
+       {
          Bang(xx, yy);
+       }
        else if (Feld[xx][yy] == EL_SP_TERMINAL)
+       {
          Feld[xx][yy] = EL_SP_TERMINAL_ACTIVE;
+
+         ResetGfxAnimation(xx, yy);
+         TEST_DrawLevelField(xx, yy);
+       }
       }
     }
     else if (IS_BELT_SWITCH(element))