Permalink
Browse files

fix DRAY

  • Loading branch information...
jacob1 committed Aug 16, 2014
1 parent 08dcc19 commit 1314567c1384736a04b612c3b1a9bc1442637efb
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/simulation/elements/DRAY.cpp
@@ -100,8 +100,10 @@ int Element_DRAY::update(UPDATE_FUNC_ARGS)
sim->delete_part(xCopyTo, yCopyTo);
if (type == PT_SPRK) //hack
p = sim->create_part(-1, xCopyTo, yCopyTo, PT_METL);
else
else if (type)
p = sim->create_part(-1, xCopyTo, yCopyTo, type);
else
continue;
if (p >= 0)
{
if (type == PT_SPRK)

0 comments on commit 1314567

Please sign in to comment.