summaryrefslogtreecommitdiff
path: root/src/elements/newgraphics.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-11-21 00:48:39 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-11-21 00:48:39 (GMT)
commit876c861c425ad424ffc5af4bf39b2a3441b50f9a (patch)
tree2140759c599a763e9887bd3a0ee119fbeb37ef33 /src/elements/newgraphics.c
parent8c6e7caaff883f9c7df111df65737547bd280c7a (diff)
downloadpowder-876c861c425ad424ffc5af4bf39b2a3441b50f9a.zip
powder-876c861c425ad424ffc5af4bf39b2a3441b50f9a.tar.gz
Fix LCRY/ELEC infinite loop, BIZR turns photons into electrons, SING explodes with electrons, electrons react with deut.
Diffstat (limited to 'src/elements/newgraphics.c')
-rw-r--r--src/elements/newgraphics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/newgraphics.c b/src/elements/newgraphics.c
index 59161b9..8af0f45 100644
--- a/src/elements/newgraphics.c
+++ b/src/elements/newgraphics.c
@@ -355,7 +355,7 @@ int graphics_GLOW(GRAPHICS_FUNC_ARGS)
}
int graphics_LCRY(GRAPHICS_FUNC_ARGS)
{
- int lifemod = ((cpart->life>10?10:cpart->life)*10);
+ int lifemod = ((cpart->tmp2>10?10:cpart->tmp2)*10);
*colr += lifemod;
*colg += lifemod;
*colb += lifemod;