mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 03:09:53 +02:00
FRAY: use floating point instead of double for this subtraction
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user