Gériboire!
This commit is contained in:
parent
4e0a9cea35
commit
5696e20452
@ -1290,16 +1290,16 @@ void Engine::Render(float elapsedTime) {
|
|||||||
//if (m_whoosh[x])
|
//if (m_whoosh[x])
|
||||||
// m_whoosh[x]->drop();
|
// m_whoosh[x]->drop();
|
||||||
//m_bullets[x] = nullptr;
|
//m_bullets[x] = nullptr;
|
||||||
m_whoosh[x] = nullptr;
|
//m_whoosh[x] = nullptr;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// else if (!m_whoosh[x]) {
|
// else if (!m_whoosh[x]) {
|
||||||
// m_whoosh[x] = m_audio.Create3DAudioObj(m_whoosh[x], AUDIO_PATH "noise.wav", m_bullets[x]->getPos(), m_bullets[x]->getVel(), true, (m_bullets[x]->getPos() - m_player.GetPosition()).Length());
|
// m_whoosh[x] = m_audio.Create3DAudioObj(m_whoosh[x], AUDIO_PATH "noise.wav", m_bullets[x]->getPos(), m_bullets[x]->getVel(), true, (m_bullets[x]->getPos() - m_player.GetPosition()).Length());
|
||||||
// }
|
// }
|
||||||
else {
|
// else {
|
||||||
Vector3f pos = m_bullets[x]->getPos(), vel = m_bullets[x]->getVel();
|
// Vector3f pos = m_bullets[x]->getPos(), vel = m_bullets[x]->getVel();
|
||||||
m_audio.Render3DAudioObj(m_whoosh[x], pos, vel, 5 - (m_bullets[x]->getPos() - m_player.GetPosition()).Length());
|
// m_audio.Render3DAudioObj(m_whoosh[x], pos, vel, 5 - (m_bullets[x]->getPos() - m_player.GetPosition()).Length());
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user