X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=133a8265d6eee5631b1db356305c27e24218e554;hp=2ca18cf6b5f773e117aa6e0ebbfaf0fc010479f3;hb=6da19745f8b8aa6f8cc02b59da507082fe509c5b;hpb=a6efe2588be311465fcaaf00ecb84c8e8e25f26f diff --git a/src/tools.c b/src/tools.c index 2ca18cf6..133a8265 100644 --- a/src/tools.c +++ b/src/tools.c @@ -2322,6 +2322,10 @@ void DrawScreenField(int x, int y) int newly = ly + (dir == MV_UP ? -1 : dir == MV_DOWN ? +1 : 0); DrawLevelElementThruMask(newlx, newly, EL_ACID); + + // prevent target field from being drawn again (but without masking) + // (this would happen if target field is scanned after moving element) + Stop[newlx][newly] = TRUE; } } else if (IS_BLOCKED(lx, ly))