summaryrefslogtreecommitdiff
path: root/src/simulation/elements/PCLN.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-25 17:23:07 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-25 17:23:07 (GMT)
commitde4fe1a38ec1114c384ddbb5ab68c7aa22541eed (patch)
treec6ff99bc088e7b28148665615d3a4f706b3be3e8 /src/simulation/elements/PCLN.cpp
parent5337f917368985b1163dfe7369d7aa7d507d1ead (diff)
downloadpowder-de4fe1a38ec1114c384ddbb5ab68c7aa22541eed.zip
powder-de4fe1a38ec1114c384ddbb5ab68c7aa22541eed.tar.gz
TPT: Reduce rate of lightning creation by clone 167740e839
Diffstat (limited to 'src/simulation/elements/PCLN.cpp')
-rw-r--r--src/simulation/elements/PCLN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/PCLN.cpp b/src/simulation/elements/PCLN.cpp
index 41701bc..1b814b0 100644
--- a/src/simulation/elements/PCLN.cpp
+++ b/src/simulation/elements/PCLN.cpp
@@ -126,7 +126,7 @@ int Element_PCLN::update(UPDATE_FUNC_ARGS)
}
}
}
- else
+ else if (parts[i].ctype!=PT_LIGH || (rand()%30)==0)
{
int np = sim->create_part(-1, x+rand()%3-1, y+rand()%3-1, parts[i].ctype);
if (np>=0)