summaryrefslogtreecommitdiff
path: root/src/elements/sprk.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-11 09:34:33 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-11 09:34:33 (GMT)
commit6178bb4605a24193a2049aa109f49b88a1a69ca5 (patch)
tree2ece2535a927ceef67399c85c3734e4a06ba4ff3 /src/elements/sprk.c
parent51aab692e98d19f6a5adf6f558c4ac8226a5f3fd (diff)
downloadpowder-6178bb4605a24193a2049aa109f49b88a1a69ca5.zip
powder-6178bb4605a24193a2049aa109f49b88a1a69ca5.tar.gz
Fixes for LIGH and TESC, LIGH observes gravity setting
Diffstat (limited to 'src/elements/sprk.c')
-rw-r--r--src/elements/sprk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/sprk.c b/src/elements/sprk.c
index ac86467..2633a65 100644
--- a/src/elements/sprk.c
+++ b/src/elements/sprk.c
@@ -68,7 +68,7 @@ int update_SPRK(UPDATE_FUNC_ARGS) {
int p=create_part(-1, x+rx*2, y+ry*2, PT_LIGH);
if (p!=-1)
{
- if(!parts[i].tmp) //Prevent Arithmetic errors with zero values
+ if(parts[i].tmp<=4) //Prevent Arithmetic errors with zero values
continue;
parts[p].life=rand()%(2+parts[i].tmp/15)+4+parts[i].tmp/7;
if (parts[i].life>60)