diff options
| author | jacob1 <jfu614@gmail.com> | 2013-07-13 16:06:43 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-07-13 16:06:43 (GMT) |
| commit | 864f0e6f4528e9cf4ecf225dd655c29a77de171e (patch) | |
| tree | b0a9ec1f8bccca857e00f8f7c1a017f20852dd2e /src/simulation/elements/WIFI.cpp | |
| parent | 34db317e446b918d5e388f9b01e64704e2cf9f31 (diff) | |
| download | powder-864f0e6f4528e9cf4ecf225dd655c29a77de171e.zip powder-864f0e6f4528e9cf4ecf225dd655c29a77de171e.tar.gz | |
WIFI lines aren't drawn in persistent mode, and are based on current temp, not tmp, so they work when paused
Diffstat (limited to 'src/simulation/elements/WIFI.cpp')
| -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 81d4e60..e6d41f6 100644 --- a/src/simulation/elements/WIFI.cpp +++ b/src/simulation/elements/WIFI.cpp @@ -89,7 +89,7 @@ int Element_WIFI::graphics(GRAPHICS_FUNC_ARGS) { float frequency = 0.0628; - int q = cpart->tmp; + int q = (int)((cpart->temp-73.15f)/100+1); *colr = sin(frequency*q + 0) * 127 + 128; *colg = sin(frequency*q + 2) * 127 + 128; *colb = sin(frequency*q + 4) * 127 + 128; |
