From 641581f20b2cb131e45868af06886b410d3293ba Mon Sep 17 00:00:00 2001 From: kaixuan Date: Thu, 5 Jan 2017 14:03:55 +0800 Subject: [PATCH] Bug fixed: Play sound and immediately pause sound, Then resume sound will not be available. --- lib/src/treefortress/sound/SoundInstance.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/treefortress/sound/SoundInstance.as b/lib/src/treefortress/sound/SoundInstance.as index 28c3198..e15c6cc 100644 --- a/lib/src/treefortress/sound/SoundInstance.as +++ b/lib/src/treefortress/sound/SoundInstance.as @@ -219,7 +219,7 @@ package treefortress.sound * Indicates whether this sound is currently paused. */ public function get isPaused():Boolean { - return channel && sound && pauseTime > 0 && pauseTime < sound.length; + return channel && sound && pauseTime >= 0 && pauseTime < sound.length; } /**