Music Handler

This commit is contained in:
Aaldert
2016-06-05 17:25:04 +02:00
parent 0f8fd67dd3
commit 47b4d9570d
3 changed files with 131 additions and 103 deletions
+4 -4
View File
@@ -19,7 +19,7 @@ Enemy::Enemy(const std::string &fileName,
speed = 1;
radius = 10;
hasTarget = false;
openal = new OpenAL();
// openal = new OpenAL();
}
@@ -66,9 +66,9 @@ bool Enemy::hasCollison(Vec3f &)
void Enemy::update(float delta)
{
if (!openal->isMusicPlaying()) {
openal->playMusic();
}
// if (!openal->isMusicPlaying()) {
// openal->playMusic();
// }
if (hasTarget)
{