summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-17 16:18:35 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-17 16:18:35 (GMT)
commita3e97d51d13cd0aa4e484b374aabf52e08d70037 (patch)
treeeabffc21839b7872b06b6e6a947264c6746b9bf5 /src/simulation/Simulation.cpp
parentca1690efe14d5cbb1637e9114403afffc3f75984 (diff)
downloadpowder-a3e97d51d13cd0aa4e484b374aabf52e08d70037.zip
powder-a3e97d51d13cd0aa4e484b374aabf52e08d70037.tar.gz
TPT: Change wifi so that it always takes one frame to transmit a722d7a396
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index a1ddb68..9b23ae2 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -2401,15 +2401,14 @@ void Simulation::update_particles_i(int start, int inc)
}
//memset(gol2, 0, sizeof(gol2));
}
- if (ISWIRE==1)//wifi channel reseting
+ if (ISWIRE>0)//wifi channel reseting
{
for ( q = 0; q<(int)(MAX_TEMP-73.15f)/100+2; q++)
- if (!wireless[q][1])
- {
- wireless[q][0] = 0;
- }
- else
- wireless[q][1] = 0;
+ {
+ wireless[q][0] = wireless[q][1];
+ wireless[q][1] = 0;
+ }
+ ISWIRE--;
}
for (i=0; i<=parts_lastActiveIndex; i++)
if (parts[i].type)