summaryrefslogtreecommitdiff
path: root/src/elements/pbcn.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-06-26 23:59:07 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2012-06-26 23:59:07 (GMT)
commit167740e83926c233b108ada9ca770f6adaf312dd (patch)
tree5182aff33c93c7d1c690b6c5b1cd7a7c62050102 /src/elements/pbcn.c
parent3a946efdfdf6bfc83540e7b4ce980acd3f6ae9b5 (diff)
downloadpowder-167740e83926c233b108ada9ca770f6adaf312dd.zip
powder-167740e83926c233b108ada9ca770f6adaf312dd.tar.gz
Reduce rate of lightning creation by clone
Diffstat (limited to 'src/elements/pbcn.c')
-rw-r--r--src/elements/pbcn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/pbcn.c b/src/elements/pbcn.c
index 001c5df..edb3f9f 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)