FRAY: use floating point instead of double for this subtraction

This commit is contained in:
jacob1 2020-05-09 13:50:34 -04:00
parent 87ee7a54e1
commit 9188f7bf8b

View File

@ -70,8 +70,8 @@ static int update(UPDATE_FUNC_ARGS)
if (!r)
r = sim->photons[y+nyi+nyy][x+nxi+nxx];
if (r && !(sim->elements[TYP(r)].Properties & TYPE_SOLID)){
parts[ID(r)].vx += nxi*((parts[i].temp-273.15)/10.0f);
parts[ID(r)].vy += nyi*((parts[i].temp-273.15)/10.0f);
parts[ID(r)].vx += nxi*((parts[i].temp-273.15f)/10.0f);
parts[ID(r)].vy += nyi*((parts[i].temp-273.15f)/10.0f);
}
}
}