Skip to content

Commit 4323a25

Browse files
committed
fix DRAY with .tmp = 0 (broken in a115e78)
1 parent 8321fc7 commit 4323a25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/simulation/elements/DRAY.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int DRAY_update(UPDATE_FUNC_ARGS)
2222
copySpaces = parts[i].tmp2 = 0;
2323
if (copyLength < 0)
2424
copyLength = parts[i].tmp = 0;
25-
else
25+
else if (copyLength > 0)
2626
copySpaces++; //strange hack
2727
if (!parts[i].life) // only fire when life is 0, but nothing sets the life right now
2828
{

0 commit comments

Comments
 (0)