Oops, didn't see that parts[i].temp at the bottom, ignore the second half of that last commit message

This commit is contained in:
jacksonmj 2012-11-05 14:42:06 +00:00
parent 3cae63c733
commit 956fb39124

View File

@ -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;