FRAY: use floating point instead of double for this subtraction
This commit is contained in:
parent
87ee7a54e1
commit
9188f7bf8b
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user