mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +02:00
Update ambient heat when enabled, fixes issue #28
This commit is contained in:
@@ -4303,13 +4303,20 @@ void Simulation::update_particles()//doesn't update the particles themselves, bu
|
|||||||
if(!sys_pause||framerender)
|
if(!sys_pause||framerender)
|
||||||
{
|
{
|
||||||
air->update_air();
|
air->update_air();
|
||||||
grav->gravity_update_async();
|
|
||||||
|
|
||||||
//Get updated buffer pointers for gravity
|
if(aheat_enable)
|
||||||
gravx = grav->gravx;
|
air->update_airh();
|
||||||
gravy = grav->gravy;
|
|
||||||
gravp = grav->gravp;
|
if(grav->ngrav_enable)
|
||||||
gravmap = grav->gravmap;
|
{
|
||||||
|
grav->gravity_update_async();
|
||||||
|
|
||||||
|
//Get updated buffer pointers for gravity
|
||||||
|
gravx = grav->gravx;
|
||||||
|
gravy = grav->gravy;
|
||||||
|
gravp = grav->gravp;
|
||||||
|
gravmap = grav->gravmap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(pmap, 0, sizeof(pmap));
|
memset(pmap, 0, sizeof(pmap));
|
||||||
|
Reference in New Issue
Block a user