From 3e9c43b65e897c62ecb4655e162b454aabec8bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Wed, 30 Mar 2016 20:40:59 +0200 Subject: [PATCH] Bouclage de la musique --- include/resource_manager.hpp | 1 + src/resource_manager.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/resource_manager.hpp b/include/resource_manager.hpp index 05acae7..638a021 100644 --- a/include/resource_manager.hpp +++ b/include/resource_manager.hpp @@ -12,6 +12,7 @@ private: sf::Music music; public: + ResourceManager(); ~ResourceManager(); /** diff --git a/src/resource_manager.cpp b/src/resource_manager.cpp index e617d6f..89a8d4f 100644 --- a/src/resource_manager.cpp +++ b/src/resource_manager.cpp @@ -2,6 +2,10 @@ #include "whereami.h" #include +ResourceManager::ResourceManager() { + music.setLoop(true); +} + ResourceManager::~ResourceManager() { textures.clear(); }