diff --git a/src/elements/O2.c b/src/elements/O2.c index 515247867..8b9cecea7 100644 --- a/src/elements/O2.c +++ b/src/elements/O2.c @@ -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) {