summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-12-19 21:35:40 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-12-19 21:35:40 (GMT)
commit810adc81fe672cab81a6d5f412961e9c4c682bbd (patch)
tree425e5a83791150427296f1ed053674f0abb77bb3 /includes
parenta523dcab798722f569f801ee7190bbff1d104770 (diff)
downloadpowder-810adc81fe672cab81a6d5f412961e9c4c682bbd.zip
powder-810adc81fe672cab81a6d5f412961e9c4c682bbd.tar.gz
Use reduced resolution gravity maps for improved performance
Diffstat (limited to 'includes')
-rw-r--r--includes/gravity.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/includes/gravity.h b/includes/gravity.h
index 9168b9d..949dc71 100644
--- a/includes/gravity.h
+++ b/includes/gravity.h
@@ -7,20 +7,17 @@ extern int ngrav_enable; //Newtonian gravity
extern int gravwl_timeout;
extern int gravityMode;
-extern float gravmap[YRES/CELL][XRES/CELL]; //Maps to be used by the main thread
-extern float *gravpf;
-extern float *gravxf;
-extern float *gravyf;
-extern unsigned *gravmaskf;
-
-extern float th_ogravmap[YRES/CELL][XRES/CELL]; // Maps to be processed by the gravity thread
-extern float th_gravmap[YRES/CELL][XRES/CELL];
-extern float th_gravx[YRES/CELL][XRES/CELL];
-extern float th_gravy[YRES/CELL][XRES/CELL];
-extern float *th_gravpf;
-extern float *th_gravxf;
-extern float *th_gravyf;
-extern float th_gravp[YRES/CELL][XRES/CELL];
+float *gravmap;//Maps to be used by the main thread
+float *gravp;
+float *gravy;
+float *gravx;
+unsigned *gravmask;
+
+float *th_ogravmap;// Maps to be processed by the gravity thread
+float *th_gravmap;
+float *th_gravx;
+float *th_gravy;
+float *th_gravp;
void gravity_init();
void gravity_cleanup();