X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;h=3255b4280abc8bc74978e66cd36df44bb07fea33;hp=fdb77eb3e9e2a139200e2d6d4741f9455b4603e6;hb=cea784bc644569bd9c155de02846dfba9ace036b;hpb=172a34e8d64ad71e6eee7871803e9faee7669ca3 diff --git a/src/game.c b/src/game.c index fdb77eb3..3255b428 100644 --- a/src/game.c +++ b/src/game.c @@ -8917,7 +8917,7 @@ static void Life(int ax, int ay) { int xx = ax+x1, yy = ay+y1; int old_element = Feld[xx][yy]; - int nachbarn = 0; + int num_neighbours = 0; if (!IN_LEV_FIELD(xx, yy)) continue; @@ -8933,13 +8933,13 @@ static void Life(int ax, int ay) (element == EL_GAME_OF_LIFE && IS_PLAYER(x, y))) && !Stop[x][y]) || (IS_FREE(x, y) && Stop[x][y])) - nachbarn++; + num_neighbours++; } if (xx == ax && yy == ay) /* field in the middle */ { - if (nachbarn < life_parameter[0] || - nachbarn > life_parameter[1]) + if (num_neighbours < life_parameter[0] || + num_neighbours > life_parameter[1]) { Feld[xx][yy] = EL_EMPTY; if (Feld[xx][yy] != old_element) @@ -8950,8 +8950,8 @@ static void Life(int ax, int ay) } else if (IS_FREE(xx, yy) || CAN_GROW_INTO(Feld[xx][yy])) { /* free border field */ - if (nachbarn >= life_parameter[2] && - nachbarn <= life_parameter[3]) + if (num_neighbours >= life_parameter[2] && + num_neighbours <= life_parameter[3]) { Feld[xx][yy] = element; MovDelay[xx][yy] = (element == EL_GAME_OF_LIFE ? 0 : life_time-1);