diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-01 16:32:02 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-01 16:32:02 (GMT) |
| commit | e41a3af8c516c5c3698b29ce95954a5941c2c06a (patch) | |
| tree | d6618205fa9cf729996b2a4923c1b9ced342e2fe /src/elements/bmtl.c | |
| parent | 6fd4b2a80c8d155de278aca22f6dd77987f34273 (diff) | |
| download | powder-e41a3af8c516c5c3698b29ce95954a5941c2c06a.zip powder-e41a3af8c516c5c3698b29ce95954a5941c2c06a.tar.gz | |
BRMT + BREL = THRM at high temperatures
Diffstat (limited to 'src/elements/bmtl.c')
| -rw-r--r-- | src/elements/bmtl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/elements/bmtl.c b/src/elements/bmtl.c index 04d9f3a..97ad699 100644 --- a/src/elements/bmtl.c +++ b/src/elements/bmtl.c @@ -1,8 +1,9 @@ #include <element.h> int update_BMTL(UPDATE_FUNC_ARGS) { - int r, rx, ry, rt; - if (parts[i].tmp>1) { + int r, rx, ry, rt, tempFactor; + if (parts[i].tmp>1) + { parts[i].tmp--; for (rx=-1; rx<2; rx++) for (ry=-1; ry<2; ry++) @@ -18,7 +19,9 @@ int update_BMTL(UPDATE_FUNC_ARGS) { parts[r>>8].tmp=(parts[i].tmp<=7)?parts[i].tmp=1:parts[i].tmp-(rand()%5);//rand()/(RAND_MAX/300)+100; } } - } else if (parts[i].tmp==1 && 1>rand()%1000) { + } + else if (parts[i].tmp==1 && 1>rand()%1000) + { parts[i].tmp = 0; part_change_type(i,x,y,PT_BRMT); } |
