From 2c7a527030911c067bef7c1ab65bffbf6cc47bdd Mon Sep 17 00:00:00 2001 From: jacob1 Date: Wed, 18 Dec 2013 13:59:30 -0500 Subject: [PATCH] Revert ef6cc9c, due to some advanced electronics breaking TODO: add a flag to some electronics so that we can fix all the bugs at once / add new things without breaking things --- 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 11909489e..e6d41f61c 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;