X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;h=fdb77eb3e9e2a139200e2d6d4741f9455b4603e6;hp=467b9e440a490756c7f28e95bb6f3e549ebec6b5;hb=172a34e8d64ad71e6eee7871803e9faee7669ca3;hpb=987953668f4f713bca4ef5fecea09d78f7b10539 diff --git a/src/game.c b/src/game.c index 467b9e44..fdb77eb3 100644 --- a/src/game.c +++ b/src/game.c @@ -8916,6 +8916,7 @@ static void Life(int ax, int ay) for (y1 = -1; y1 < 2; y1++) for (x1 = -1; x1 < 2; x1++) { int xx = ax+x1, yy = ay+y1; + int old_element = Feld[xx][yy]; int nachbarn = 0; if (!IN_LEV_FIELD(xx, yy)) @@ -8941,7 +8942,7 @@ static void Life(int ax, int ay) nachbarn > life_parameter[1]) { Feld[xx][yy] = EL_EMPTY; - if (!Stop[xx][yy]) + if (Feld[xx][yy] != old_element) TEST_DrawLevelField(xx, yy); Stop[xx][yy] = TRUE; changed = TRUE; @@ -8954,7 +8955,7 @@ static void Life(int ax, int ay) { Feld[xx][yy] = element; MovDelay[xx][yy] = (element == EL_GAME_OF_LIFE ? 0 : life_time-1); - if (!Stop[xx][yy]) + if (Feld[xx][yy] != old_element) TEST_DrawLevelField(xx, yy); Stop[xx][yy] = TRUE; changed = TRUE;