Minor changes.

- Replaced duplicate GameImage.process_sub() calls from related images with calling a single method, for easier editing.
- Suppress warnings from overwritten Slick2D classes.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-02-16 01:24:22 -05:00
parent 66016160a4
commit 329d54c230
5 changed files with 53 additions and 40 deletions

View File

@@ -248,10 +248,15 @@ public class MusicController {
/**
* Plays the current track.
* @param loop whether or not to loop the track
*/
public static void play() {
if (trackExists())
player.play();
public static void play(boolean loop) {
if (trackExists()) {
if (loop)
player.loop();
else
player.play();
}
}
/**