Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 committed Sep 16, 2021
1 parent d5123a4 commit f31d7f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/main/physics/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3186,7 +3186,7 @@ void Actor::updateVisual(float dt)

// update exhausts
// TODO: Move to GfxActor, don't forget dt*m_simulation_speed
if (!m_disable_smoke && ar_engine && exhausts.size() > 0)
if (ar_engine && exhausts.size() > 0)
{
std::vector<exhaust_t>::iterator it;
for (it = exhausts.begin(); it != exhausts.end(); it++)
Expand All @@ -3198,7 +3198,7 @@ void Actor::updateVisual(float dt)
ParticleEmitter* emit = it->smoker->getEmitter(0);
it->smokeNode->setPosition(ar_nodes[it->emitterNode].AbsPosition);
emit->setDirection(dir);
if (ar_engine->GetSmoke() != -1.0)
if (!m_disable_smoke && ar_engine->GetSmoke() != -1.0)
{
emit->setEnabled(true);
emit->setColour(ColourValue(0.0, 0.0, 0.0, 0.02 + ar_engine->GetSmoke() * 0.06));
Expand Down
4 changes: 4 additions & 0 deletions source/main/physics/ActorSpawner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,10 @@ void ActorSpawner::ProcessTurbojet(RigDef::Turbojet & def)
tj->tjet_visual.SetNodes(front, back, ref);
tj->tjet_visual.SetupVisuals(def, m_actor->ar_num_aeroengines,
propname, nozzle_ent, afterburn_ent);
if (!m_actor->m_disable_smoke)
{
tj->tjet_visual.SetVisible(true);
}

m_actor->ar_aeroengines[m_actor->ar_num_aeroengines]=tj;
m_actor->ar_driveable=AIRPLANE;
Expand Down

0 comments on commit f31d7f8

Please # to comment.