mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-22 16:13:45 +00:00
XXXVehicle::updateEmitter cleanups
This commit is contained in:
parent
871b498d73
commit
e85af7b4d8
2 changed files with 8 additions and 8 deletions
|
|
@ -731,10 +731,10 @@ void FlyingVehicle::updateEmitter(bool active,F32 dt,ParticleEmitterData *emitte
|
|||
}
|
||||
}
|
||||
else {
|
||||
for (S32 j = idx; j < idx + count; j++)
|
||||
if (bool(mJetEmitter[j])) {
|
||||
mJetEmitter[j]->deleteWhenEmpty();
|
||||
mJetEmitter[j] = 0;
|
||||
for (S32 k = idx; k < idx + count; k++)
|
||||
if (bool(mJetEmitter[k])) {
|
||||
mJetEmitter[k]->deleteWhenEmpty();
|
||||
mJetEmitter[k] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -965,10 +965,10 @@ void HoverVehicle::updateEmitter(bool active,F32 dt,ParticleEmitterData *emitter
|
|||
}
|
||||
}
|
||||
else {
|
||||
for (S32 j = idx; j < idx + count; j++)
|
||||
if (bool(mJetEmitter[j])) {
|
||||
mJetEmitter[j]->deleteWhenEmpty();
|
||||
mJetEmitter[j] = 0;
|
||||
for (S32 k = idx; k < idx + count; k++)
|
||||
if (bool(mJetEmitter[k])) {
|
||||
mJetEmitter[k]->deleteWhenEmpty();
|
||||
mJetEmitter[k] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue