mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-28 18:29:49 +02:00
Allow negative gravity
This commit is contained in:
@@ -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++)
|
||||
|
Reference in New Issue
Block a user