F3: Toggle drawing bounding boxes

This commit is contained in:
2014-03-13 16:46:07 +01:00
parent 4905c17ebf
commit 235e9648ad
4 changed files with 38 additions and 19 deletions
+3
View File
@@ -77,6 +77,9 @@ void Systems::SoundSystem::UpdateEntity(double dt, EntityID entity, EntityID par
void Systems::SoundSystem::PlaySound(std::shared_ptr<Components::SoundEmitter> emitter, std::string fileName)
{
if (m_Sources.find(emitter.get()) == m_Sources.end())
return;
ALuint buffer = LoadFile(fileName);
ALuint source = m_Sources[emitter.get()];
alSourcei(source, AL_BUFFER, buffer);