summaryrefslogtreecommitdiff
path: root/src/elements/elec.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-12-19 14:29:01 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-12-19 14:29:01 (GMT)
commitd6953be3a8271785b5912f3105f3ca92cc17aaae (patch)
tree0b6f0fdc504809d0c2202742176c5d02baff3874 /src/elements/elec.c
parent3812034d2b1c6e3c3f28479ca7c9570adcec7a87 (diff)
downloadpowder-d6953be3a8271785b5912f3105f3ca92cc17aaae.zip
powder-d6953be3a8271785b5912f3105f3ca92cc17aaae.tar.gz
New element: Ignition cord
Diffstat (limited to 'src/elements/elec.c')
-rw-r--r--src/elements/elec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/elec.c b/src/elements/elec.c
index a054102..6acbbab 100644
--- a/src/elements/elec.c
+++ b/src/elements/elec.c
@@ -22,9 +22,9 @@ int update_ELEC(UPDATE_FUNC_ARGS) {
fire_r[y/CELL][x/CELL] += rand()%200; //D: Doesn't work with OpenGL, also shouldn't be here
fire_g[y/CELL][x/CELL] += rand()%200;
fire_b[y/CELL][x/CELL] += rand()%200;
- for (rrx=-2; rrx<=2; rrx++)
+ for (rrx=-1; rrx<=1; rrx++)
{
- for (rry=-2; rry<=2; rry++)
+ for (rry=-1; rry<=1; rry++)
{
if (x+rx+rrx>=0 && y+ry+rry>=0 && x+rx+rrx<XRES && y+ry+rry<YRES) {
nb = create_part(-1, x+rx+rrx, y+ry+rry, PT_BOMB);