mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Merge pull request #2188 from rextimmy/gcc_clang_fix
gcc/clang build fix
This commit is contained in:
commit
0191bf5fc1
2 changed files with 3 additions and 2 deletions
|
|
@ -359,7 +359,8 @@ void SoundComponent::updateAudioState(Sound& st)
|
||||||
{
|
{
|
||||||
//if (Sim::findObject(SimObjectId((uintptr_t)st.profile), st.profile))
|
//if (Sim::findObject(SimObjectId((uintptr_t)st.profile), st.profile))
|
||||||
// {
|
// {
|
||||||
st.sound = SFX->createSource(st.profile, &mOwner->getTransform());
|
MatrixF transform = mOwner->getTransform();
|
||||||
|
st.sound = SFX->createSource(st.profile, &transform);
|
||||||
if (st.sound)
|
if (st.sound)
|
||||||
st.sound->play();
|
st.sound->play();
|
||||||
//}
|
//}
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ public:
|
||||||
SimTime timeout; ///< Time until we stop playing this sound.
|
SimTime timeout; ///< Time until we stop playing this sound.
|
||||||
SFXTrack* profile; ///< Profile on server
|
SFXTrack* profile; ///< Profile on server
|
||||||
SFXSource* sound; ///< Sound on client
|
SFXSource* sound; ///< Sound on client
|
||||||
Sound::Sound()
|
Sound()
|
||||||
{
|
{
|
||||||
play = false;
|
play = false;
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue