shouldPlay handles null just fine.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1000 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Dave Hoover
2010-08-25 21:29:54 +00:00
parent 480d98cc5e
commit b5dd723ef1
@@ -251,7 +251,7 @@ public class OpenALSoundPlayer extends SoundPlayer
public Frob loop (SoundType type, String pkgPath, String key, final float gain,
final float[] pos)
{
if (type != null && !shouldPlay(type)) {
if (!shouldPlay(type)) {
return null;
}
@@ -302,7 +302,7 @@ public class OpenALSoundPlayer extends SoundPlayer
public boolean play (SoundType type, String pkgPath, String key, final float gain,
final float[] pos)
{
if (type != null && !shouldPlay(type)) {
if (!shouldPlay(type)) {
return false;
}