Update ambient heat when enabled, fixes issue #28
This commit is contained in:
parent
aa774771a0
commit
4b1c388995
@ -4303,6 +4303,12 @@ 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();
|
||||||
|
|
||||||
|
if(aheat_enable)
|
||||||
|
air->update_airh();
|
||||||
|
|
||||||
|
if(grav->ngrav_enable)
|
||||||
|
{
|
||||||
grav->gravity_update_async();
|
grav->gravity_update_async();
|
||||||
|
|
||||||
//Get updated buffer pointers for gravity
|
//Get updated buffer pointers for gravity
|
||||||
@ -4311,6 +4317,7 @@ void Simulation::update_particles()//doesn't update the particles themselves, bu
|
|||||||
gravp = grav->gravp;
|
gravp = grav->gravp;
|
||||||
gravmap = grav->gravmap;
|
gravmap = grav->gravmap;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
memset(pmap, 0, sizeof(pmap));
|
memset(pmap, 0, sizeof(pmap));
|
||||||
memset(pmap_count, 0, sizeof(pmap_count));
|
memset(pmap_count, 0, sizeof(pmap_count));
|
||||||
|
Loading…
Reference in New Issue
Block a user