diff --git a/src/elements/bcln.c b/src/elements/bcln.c index 91dac12d2..053df1841 100644 --- a/src/elements/bcln.c +++ b/src/elements/bcln.c @@ -49,7 +49,7 @@ int update_BCLN(UPDATE_FUNC_ARGS) { } else { if (parts[i].ctype==PT_LIFE) create_part(-1, x+rand()%3-1, y+rand()%3-1, parts[i].ctype|(parts[i].tmp<<8)); - else + else if (parts[i].ctype!=PT_LIGH || (rand()%30)==0) { int np = create_part(-1, x+rand()%3-1, y+rand()%3-1, parts[i].ctype); if (np>=0) diff --git a/src/elements/clne.c b/src/elements/clne.c index 3ac45d8de..e84252ac7 100644 --- a/src/elements/clne.c +++ b/src/elements/clne.c @@ -41,7 +41,7 @@ int update_CLNE(UPDATE_FUNC_ARGS) { } else { if (parts[i].ctype==PT_LIFE) create_part(-1, x+rand()%3-1, y+rand()%3-1, parts[i].ctype|(parts[i].tmp<<8)); - else + else if (parts[i].ctype!=PT_LIGH || (rand()%30)==0) { int np = create_part(-1, x+rand()%3-1, y+rand()%3-1, parts[i].ctype); if (np>=0) diff --git a/src/elements/pbcn.c b/src/elements/pbcn.c index 001c5dfcb..edb3f9fde 100644 --- a/src/elements/pbcn.c +++ b/src/elements/pbcn.c @@ -101,7 +101,7 @@ int update_PBCN(UPDATE_FUNC_ARGS) { } } } - else + else if (parts[i].ctype!=PT_LIGH || (rand()%30)==0) { int np = create_part(-1, x+rand()%3-1, y+rand()%3-1, parts[i].ctype); if (np>=0) diff --git a/src/elements/pcln.c b/src/elements/pcln.c index 1ffcbb440..74412e09d 100644 --- a/src/elements/pcln.c +++ b/src/elements/pcln.c @@ -91,7 +91,7 @@ int update_PCLN(UPDATE_FUNC_ARGS) { } } } - else + else if (parts[i].ctype!=PT_LIGH || (rand()%30)==0) { int np = create_part(-1, x+rand()%3-1, y+rand()%3-1, parts[i].ctype); if (np>=0)