From ef6cc9c41815b4cafd79ac9687bddf65da544726 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Sat, 21 Sep 2013 13:18:27 +0100 Subject: [PATCH] WIFI: always delay one frame before conducting, to prevent particle order issues --- src/simulation/elements/WIFI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/WIFI.cpp b/src/simulation/elements/WIFI.cpp index e6d41f61c..11909489e 100644 --- a/src/simulation/elements/WIFI.cpp +++ b/src/simulation/elements/WIFI.cpp @@ -73,7 +73,7 @@ int Element_WIFI::update(UPDATE_FUNC_ARGS) } else { - if ((r&0xFF)==PT_SPRK && parts[r>>8].ctype!=PT_NSCN && parts[r>>8].life>=3) + if ((r&0xFF)==PT_SPRK && parts[r>>8].ctype!=PT_NSCN && parts[r>>8].life==3) { sim->wireless[parts[i].tmp][1] = 1; sim->ISWIRE = 2;