From db6e4f3b55b7709263a5b4ea07e1d4c38ccdc263 Mon Sep 17 00:00:00 2001 From: yugecin Date: Wed, 18 Jan 2017 17:39:46 +0100 Subject: [PATCH] fix music not playing (whoops) --- src/yugecin/opsudance/core/DisplayContainer.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/yugecin/opsudance/core/DisplayContainer.java b/src/yugecin/opsudance/core/DisplayContainer.java index a2b70d7f..82b39997 100644 --- a/src/yugecin/opsudance/core/DisplayContainer.java +++ b/src/yugecin/opsudance/core/DisplayContainer.java @@ -26,10 +26,7 @@ import org.lwjgl.openal.AL; import org.lwjgl.opengl.Display; import org.lwjgl.opengl.DisplayMode; import org.lwjgl.opengl.GL11; -import org.newdawn.slick.Graphics; -import org.newdawn.slick.Input; -import org.newdawn.slick.KeyListener; -import org.newdawn.slick.MouseListener; +import org.newdawn.slick.*; import org.newdawn.slick.opengl.InternalTextureLoader; import org.newdawn.slick.opengl.renderer.Renderer; import org.newdawn.slick.opengl.renderer.SGL; @@ -160,6 +157,7 @@ public class DisplayContainer implements ErrorDumpable, KeyListener, MouseListen timeSinceLastRender += delta; input.poll(width, height); + Music.poll(delta); mouseX = input.getMouseX(); mouseY = input.getMouseY(); state.update();