1
0
Fork 0

Update particles API again

Rename methods to make it clear they do additional work
This commit is contained in:
James Turner 2021-02-07 11:36:06 +00:00
parent 0cc465d39f
commit ba8b25db5f

View file

@ -269,8 +269,7 @@ FGEnvironmentMgr::update (double dt)
auto particlesManager = simgear::ParticlesGlobalManager::instance();
particlesManager->setWindFrom(_environment->get_wind_from_heading_deg(),
_environment->get_wind_speed_kt());
particlesManager->setSimTime(dt);
particlesManager->setCurrentPosition(globals->get_aircraft_position());
particlesManager->update(dt, globals->get_aircraft_position());
if( _cloudLayersDirty ) {
_cloudLayersDirty = false;