mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Remove sdl_scale from update_O2
Particle coords are not affected by sdl_scale, only mouse coords
This commit is contained in:
@@ -44,7 +44,7 @@ int update_O2(UPDATE_FUNC_ARGS)
|
||||
|
||||
}
|
||||
}
|
||||
else if (parts[i].temp > 9973.15 && pv[y/CELL][x/CELL] > 250.0f && abs(gravx[(((y/sdl_scale)/CELL)*(XRES/CELL))+((x/sdl_scale)/CELL)]) + abs(gravy[(((y/sdl_scale)/CELL)*(XRES/CELL))+((x/sdl_scale)/CELL)]) > 20)
|
||||
else if (parts[i].temp > 9973.15 && pv[y/CELL][x/CELL] > 250.0f && fabsf(gravx[((y/CELL)*(XRES/CELL))+(x/CELL)]) + fabsf(gravy[((y/CELL)*(XRES/CELL))+(x/CELL)]) > 20)
|
||||
{
|
||||
if (rand()%5 < 1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user