From 956fb39124a54f4f421170ef9412be920931d937 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Mon, 5 Nov 2012 14:42:06 +0000 Subject: Oops, didn't see that parts[i].temp at the bottom, ignore the second half of that last commit message 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; -- cgit v0.9.2-21-gd62e