From 35d125cf532fdd329cee6f87d0fa26a59d804567 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Wed, 13 Jun 2012 00:34:30 +0100 Subject: [PATCH] Remove sdl_scale from update_O2 Particle coords are not affected by sdl_scale, only mouse coords --- src/elements/O2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {