Reformatting of #17 and #18, and minor bug fix in #17.

Fixed not losing any health at near-zero rotation angles.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-02-14 01:07:17 -05:00
parent 2c59b345b5
commit 54806303f4
6 changed files with 49 additions and 42 deletions

View File

@@ -393,15 +393,17 @@ public class OpenALStreamPlayer {
lastUpdateTime = System.currentTimeMillis() - offsetTime;
}
/**
* Closes the stream.
*/
public void close() {
if(audio != null){
if (audio != null) {
try {
audio.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}

View File

@@ -916,7 +916,7 @@ public class SoundStore {
return;
}
if(this.stream != null){
if (this.stream != null) {
this.stream.close();
}
currentMusic = sources.get(0);