diff options
| author | Simon 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) |
| commit | a3e97d51d13cd0aa4e484b374aabf52e08d70037 (patch) | |
| tree | eabffc21839b7872b06b6e6a947264c6746b9bf5 /src/elements | |
| parent | ca1690efe14d5cbb1637e9114403afffc3f75984 (diff) | |
| download | powder-a3e97d51d13cd0aa4e484b374aabf52e08d70037.zip powder-a3e97d51d13cd0aa4e484b374aabf52e08d70037.tar.gz | |
TPT: Change wifi so that it always takes one frame to transmit a722d7a396
Diffstat (limited to 'src/elements')
| -rw-r--r-- | src/elements/wifi.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/elements/wifi.cpp b/src/elements/wifi.cpp index cb77dd9..9a25128 100644 --- a/src/elements/wifi.cpp +++ b/src/elements/wifi.cpp @@ -12,6 +12,8 @@ int update_WIFI(UPDATE_FUNC_ARGS) { r = pmap[y+ry][x+rx]; if (!r) continue; + // wireless[][0] - whether channel is active on this frame + // wireless[][1] - whether channel should be active on next frame if (sim->wireless[parts[i].tmp][0]) { if (((r&0xFF)==PT_NSCN||(r&0xFF)==PT_PSCN||(r&0xFF)==PT_INWR)&&parts[r>>8].life==0 && sim->wireless[parts[i].tmp][0]) @@ -25,9 +27,8 @@ int update_WIFI(UPDATE_FUNC_ARGS) { { if ((r&0xFF)==PT_SPRK && parts[r>>8].ctype!=PT_NSCN && parts[r>>8].life>=3) { - sim->wireless[parts[i].tmp][0] = 1; sim->wireless[parts[i].tmp][1] = 1; - //ISWIRE = 1; + sim->ISWIRE = 2; } } } |
