Muziek toegvoegt aan world en enemy

This commit is contained in:
Aaldert
2016-06-21 18:15:49 +02:00
parent d56625e19a
commit 9543dd8324
9 changed files with 12 additions and 18 deletions
+1 -7
View File
@@ -27,10 +27,9 @@ Enemy::Enemy(const std::string &fileName,
Enemy::~Enemy()
{
CrystalPoint::GetSoundSystem().UnloadSound(hit_sound_id);
if (model)
Model::unload(model);
CrystalPoint::GetSoundSystem().UnloadSound(hit_sound_id);
}
void Enemy::draw()
@@ -106,11 +105,6 @@ void Enemy::update(float delta)
else
{
attack = true;
if (music->IsPlaying() == true)
{
// music->Pause();
music->Stop();
}
}
rotation.y = atan2f(dx, dz) * 180 / M_PI;