Applied sound pre-loading patch from mathnerd314 (#331)
[supertux.git] / src / badguy / ghosttree.cpp
index 61b5d57..e343621 100644 (file)
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include <config.h>
+#include <algorithm>
 
 #include "ghosttree.hpp"
 #include "treewillowisp.hpp"
@@ -39,6 +40,8 @@ GhostTree::GhostTree(const lisp::Lisp& lisp)
 {
   glow_sprite.reset(sprite_manager->create("images/creatures/ghosttree/ghosttree-glow.sprite"));
   set_colgroup_active(COLGROUP_TOUCHABLE);
+  sound_manager->preload("sounds/tree_howling.ogg");
+  sound_manager->preload("sounds/tree_suck.ogg");
 }
 
 GhostTree::~GhostTree()