summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-14 12:18:00 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-14 12:18:00 (GMT)
commit37e15bf3ad5a728e0394f40b9f4691de7464c6ea (patch)
tree0373de1bc26047e211098277d24df38e77d89799 /src/main.c
parent1af0a86e0d2f5659f4672a8db0ca67da6e980e51 (diff)
downloadpowder-37e15bf3ad5a728e0394f40b9f4691de7464c6ea.zip
powder-37e15bf3ad5a728e0394f40b9f4691de7464c6ea.tar.gz
Replace use of gravy and gravf with gravxf and gravyf
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 7a08de7..8f67b05 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1826,9 +1826,9 @@ int main(int argc, char *argv[])
if(result) //Did the gravity thread finish?
{
memcpy(th_gravmap, gravmap, sizeof(gravmap)); //Move our current gravmap to be processed other thread
- memcpy(gravy, th_gravy, sizeof(gravy)); //Hmm, Gravy
- memcpy(gravx, th_gravx, sizeof(gravx)); //Move the processed velocity maps to be used
- memcpy(gravp, th_gravp, sizeof(gravp));
+ //memcpy(gravy, th_gravy, sizeof(gravy)); //Hmm, Gravy
+ //memcpy(gravx, th_gravx, sizeof(gravx)); //Move the processed velocity maps to be used
+ //memcpy(gravp, th_gravp, sizeof(gravp));
if (!sys_pause||framerender){ //Only update if not paused
//Switch the full size gravmaps, we don't really need the two above any more
@@ -2646,7 +2646,7 @@ int main(int argc, char *argv[])
sprintf(heattext, "Empty, Pressure: %3.2f", pv[(y/sdl_scale)/CELL][(x/sdl_scale)/CELL]);
if (DEBUG_MODE)
{
- sprintf(coordtext, "X:%d Y:%d. GX: %.2f GY: %.2f", x/sdl_scale, y/sdl_scale, gravx[(y/sdl_scale)/CELL][(x/sdl_scale)/CELL], gravy[(y/sdl_scale)/CELL][(x/sdl_scale)/CELL]);
+ sprintf(coordtext, "X:%d Y:%d. GX: %.2f GY: %.2f", x/sdl_scale, y/sdl_scale, gravxf[((y/sdl_scale)*XRES)+(x/sdl_scale)], gravyf[((y/sdl_scale)*XRES)+(x/sdl_scale)]);
}
}
}