From c9d5841101cb1e405d05ecd1b1f184a7e0957bc6 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 23 May 2015 12:47:39 -0400 Subject: [PATCH] fix DRAY with .tmp = 0 (broken in a115e7895233) --- src/simulation/elements/DRAY.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/DRAY.cpp b/src/simulation/elements/DRAY.cpp index 0a611fb9e..0a52ae52f 100644 --- a/src/simulation/elements/DRAY.cpp +++ b/src/simulation/elements/DRAY.cpp @@ -60,7 +60,7 @@ int Element_DRAY::update(UPDATE_FUNC_ARGS) copySpaces = parts[i].tmp2 = 0; if (copyLength < 0) copyLength = parts[i].tmp = 0; - else + else if (copyLength > 0) copySpaces++; //strange hack if (!parts[i].life) // only fire when life is 0, but nothing sets the life right now {