Remove sdl_scale from update_O2
Particle coords are not affected by sdl_scale, only mouse coords
This commit is contained in:
parent
99edca6d07
commit
35d125cf53
@ -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)
|
if (rand()%5 < 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user