Allow negative gravity

This commit is contained in:
Simon Robertshaw 2011-04-24 20:18:00 +01:00
parent 3a541dfcbb
commit aef09292ee

View File

@ -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++)