Update gravity mask even while paused
This commit is contained in:
parent
7a3c0c1d9a
commit
9327eecd7b
@ -5219,11 +5219,6 @@ void Simulation::BeforeSim()
|
|||||||
gravp = grav->gravp;
|
gravp = grav->gravp;
|
||||||
gravmap = grav->gravmap;
|
gravmap = grav->gravmap;
|
||||||
}
|
}
|
||||||
if(gravWallChanged)
|
|
||||||
{
|
|
||||||
grav->gravity_mask();
|
|
||||||
gravWallChanged = false;
|
|
||||||
}
|
|
||||||
if(emp_decor>0)
|
if(emp_decor>0)
|
||||||
emp_decor -= emp_decor/25+2;
|
emp_decor -= emp_decor/25+2;
|
||||||
if(emp_decor < 0)
|
if(emp_decor < 0)
|
||||||
@ -5240,6 +5235,12 @@ void Simulation::BeforeSim()
|
|||||||
sandcolour = (int)(20.0f*sin((float)sandcolour_frame*(M_PI/180.0f)));
|
sandcolour = (int)(20.0f*sin((float)sandcolour_frame*(M_PI/180.0f)));
|
||||||
sandcolour_frame = (sandcolour_frame+1)%360;
|
sandcolour_frame = (sandcolour_frame+1)%360;
|
||||||
|
|
||||||
|
if (gravWallChanged)
|
||||||
|
{
|
||||||
|
grav->gravity_mask();
|
||||||
|
gravWallChanged = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (debug_currentParticle == 0)
|
if (debug_currentParticle == 0)
|
||||||
RecalcFreeParticles(true);
|
RecalcFreeParticles(true);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user