diff options
Diffstat (limited to 'src/elements/prti.c')
| -rw-r--r-- | src/elements/prti.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/elements/prti.c b/src/elements/prti.c index 33b449f..ff9f459 100644 --- a/src/elements/prti.c +++ b/src/elements/prti.c @@ -1,11 +1,9 @@ #include <powder.h> int update_PRTI(UPDATE_FUNC_ARGS) { - int r, temp, nnx, temprange = 100; + int r, nnx; int count =0; - for ( temp = 0; temp < MAX_TEMP; temp += temprange) - if (parts[i].temp-73.15>temp&&parts[i].temp-73.15 <temp+temprange) - parts[i].tmp = temp/100; + parts[i].tmp = (int)((parts[i].temp-73.15f)/100+1); for (ny=-1; ny<2; ny++) for (nx=-1; nx<2; nx++) if (x+nx>=0 && y+ny>0 && |
