diff options
| author | jacob1 <jfu614@gmail.com> | 2012-10-11 22:39:58 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-10-26 14:11:59 (GMT) |
| commit | c58a3fb2dc8afe4ce3dbca290afddd4fd906dbb5 (patch) | |
| tree | 56a1097b42aed728ab88e46255b6baa53bcd3e0e /src/simulation/elements | |
| parent | b84460d79b35e3e410f9d5ee2cec93d7babc424f (diff) | |
| download | powder-c58a3fb2dc8afe4ce3dbca290afddd4fd906dbb5.zip powder-c58a3fb2dc8afe4ce3dbca290afddd4fd906dbb5.tar.gz | |
TSNS doesn't detect things with an equal temp (fixes detecting wires)
Diffstat (limited to 'src/simulation/elements')
| -rw-r--r-- | src/simulation/elements/TSNS.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/TSNS.cpp b/src/simulation/elements/TSNS.cpp index ceedbb4..d5c8aa7 100644 --- a/src/simulation/elements/TSNS.cpp +++ b/src/simulation/elements/TSNS.cpp @@ -28,7 +28,7 @@ Element_TSNS::Element_TSNS() Temperature = R_TEMP+0.0f +273.15f; HeatConduct = 0; - Description = "Creates a spark when there's a nearby particle with equal or greater temperature"; + Description = "Creates a spark when there's a nearby particle with a greater temperature"; State = ST_SOLID; Properties = TYPE_SOLID; @@ -82,7 +82,7 @@ int Element_TSNS::update(UPDATE_FUNC_ARGS) r = sim->photons[y+ry][x+rx]; if(!r) continue; - if (parts[r>>8].temp >= parts[i].temp && parts[r>>8].type != PT_TSNS) + if (parts[r>>8].temp > parts[i].temp && parts[r>>8].type != PT_TSNS) parts[i].life = 1; } return 0; |
