diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-11-05 14:42:06 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-11-05 14:42:06 (GMT) |
| commit | 956fb39124a54f4f421170ef9412be920931d937 (patch) | |
| tree | 83fa0f800058a042870f857735b7d5926b9ddfba /src/simulation/elements/VIBR.cpp | |
| parent | 3cae63c733767394ebb8dbc2ad2481a8a60bca13 (diff) | |
| download | powder-956fb39124a54f4f421170ef9412be920931d937.zip powder-956fb39124a54f4f421170ef9412be920931d937.tar.gz | |
Oops, didn't see that parts[i].temp at the bottom, ignore the second half of that last commit message
Diffstat (limited to 'src/simulation/elements/VIBR.cpp')
| -rw-r--r-- | src/simulation/elements/VIBR.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/simulation/elements/VIBR.cpp b/src/simulation/elements/VIBR.cpp index 25f7a41..0a7c470 100644 --- a/src/simulation/elements/VIBR.cpp +++ b/src/simulation/elements/VIBR.cpp @@ -153,10 +153,8 @@ int Element_VIBR::update(UPDATE_FUNC_ARGS) { if (parts[i].life == 1) { int random = rand(), index; - float temperature = parts[i].temp + parts[i].tmp*3; sim->create_part(i, x, y, PT_EXOT); parts[i].tmp2 = rand()%1000; - parts[i].temp = temperature; index = sim->create_part(-3,x+((random>>4)&3)-1,y+((random>>6)&3)-1,PT_ELEC); if (index != -1) parts[index].temp = 7000; |
