diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2013-09-21 12:18:27 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2013-09-21 12:18:27 (GMT) |
| commit | ef6cc9c41815b4cafd79ac9687bddf65da544726 (patch) | |
| tree | b5a8c2f03e02a0f136c20e326fbbca06fb943ca6 /src/simulation | |
| parent | ce277a11f1803269b10c5084f36ce0ca1aee9e33 (diff) | |
| download | powder-ef6cc9c41815b4cafd79ac9687bddf65da544726.zip powder-ef6cc9c41815b4cafd79ac9687bddf65da544726.tar.gz | |
WIFI: always delay one frame before conducting, to prevent particle order issues
Diffstat (limited to 'src/simulation')
| -rw-r--r-- | src/simulation/elements/WIFI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/WIFI.cpp b/src/simulation/elements/WIFI.cpp index e6d41f6..1190948 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; |
