TGEA 1.7.0 Beta 1 Bug - QuickFix for Flyingvehicle Engine sounds
by Kirk Longendyke · in Torque Game Engine Advanced · 03/21/2008 (12:36 pm) · 0 replies
As mEngineSound->play(); is not called during datablock assignment (to keep it from playing during load time, perhapse?)
the simplest methodology I can think of to put that back in without undoing the work is:
the simplest methodology I can think of to put that back in without undoing the work is:
void FlyingVehicle::updateEngineSound(F32 level)
{
if ( mEngineSound )
{
if (!mEngineSound->isPlaying()) mEngineSound->play();
mEngineSound->setTransform(getTransform());
mEngineSound->setVelocity(getVelocity());
mEngineSound->setVolume( level );
}
}