diff options
| author | Simon 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) |
| commit | aef09292ee83479571524e4900c903af03efe7e5 (patch) | |
| tree | e1f8c70e4bb1f741ff253f39907ded9caa5f01d8 /src | |
| parent | 3a541dfcbb4c801d94c2913ec5be7fbc6c3bed98 (diff) | |
| download | powder-aef09292ee83479571524e4900c903af03efe7e5.zip powder-aef09292ee83479571524e4900c903af03efe7e5.tar.gz | |
Allow negative gravity
Diffstat (limited to 'src')
| -rw-r--r-- | src/air.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) |
