summaryrefslogtreecommitdiff
path: root/src/simulation/elements/SPRK.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-05-16 04:20:07 (GMT)
committer jacob1 <jfu614@gmail.com>2013-05-16 04:20:07 (GMT)
commit81876a93a30ad71018009a60aed9ede0b43533ab (patch)
treeadd327177f1ce77a6f2752d34a13f312062e8962 /src/simulation/elements/SPRK.cpp
parent5ad819efbd4dd745d315d6a238fd0aa11af7be31 (diff)
downloadpowder-81876a93a30ad71018009a60aed9ede0b43533ab.zip
powder-81876a93a30ad71018009a60aed9ede0b43533ab.tar.gz
redo some brush drawing stuff to remove useless checks, and to allow for replace mode in the future
Diffstat (limited to 'src/simulation/elements/SPRK.cpp')
-rw-r--r--src/simulation/elements/SPRK.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/SPRK.cpp b/src/simulation/elements/SPRK.cpp
index a8b40f7..e289798 100644
--- a/src/simulation/elements/SPRK.cpp
+++ b/src/simulation/elements/SPRK.cpp
@@ -85,7 +85,7 @@ int Element_SPRK::update(UPDATE_FUNC_ARGS)
nearp = sim->nearest_part(i, PT_ETRD, -1);
if (nearp!=-1 && sim->parts_avg(i, nearp, PT_INSL)!=PT_INSL)
{
- sim->CreateLine(x, y, (int)(parts[nearp].x+0.5f), (int)(parts[nearp].y+0.5f), 0, 0, PT_PLSM, 0);
+ sim->CreateLine(x, y, (int)(parts[nearp].x+0.5f), (int)(parts[nearp].y+0.5f), PT_PLSM);
sim->part_change_type(i,x,y,ct);
ct = parts[i].ctype = PT_NONE;
parts[i].life = 20;