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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user