summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-04-24 19:18:00 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-04-24 19:18:00 (GMT)
commitaef09292ee83479571524e4900c903af03efe7e5 (patch)
treee1f8c70e4bb1f741ff253f39907ded9caa5f01d8 /src
parent3a541dfcbb4c801d94c2913ec5be7fbc6c3bed98 (diff)
downloadpowder-aef09292ee83479571524e4900c903af03efe7e5.zip
powder-aef09292ee83479571524e4900c903af03efe7e5.tar.gz
Allow negative gravity
Diffstat (limited to 'src')
-rw-r--r--src/air.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/air.c b/src/air.c
index e859e6c..740a28e 100644
--- a/src/air.c
+++ b/src/air.c
@@ -62,7 +62,7 @@ void update_grav(void)
{
for (j=0; j<XRES/CELL; j++)
{
- if(th_gravmap[i][j]>0.0f) //Only calculate with populated or changed cells.
+ if(th_gravmap[i][j]>0.0001f || th_gravmap[i][j]<-0.0001f) //Only calculate with populated or changed cells.
for (y=0; y<YRES/CELL; y++)
{
for (x=0; x<XRES/CELL; x++)