Allow negative gravity
This commit is contained in:
parent
3a541dfcbb
commit
aef09292ee
@ -62,7 +62,7 @@ void update_grav(void)
|
|||||||
{
|
{
|
||||||
for (j=0; j<XRES/CELL; j++)
|
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 (y=0; y<YRES/CELL; y++)
|
||||||
{
|
{
|
||||||
for (x=0; x<XRES/CELL; x++)
|
for (x=0; x<XRES/CELL; x++)
|
||||||
|
Loading…
Reference in New Issue
Block a user