Make music stop button behave as expected

This commit is contained in:
alzeih
2010-05-06 23:46:50 +12:00
parent 3c539daf20
commit 1c862832ed
2 changed files with 14 additions and 3 deletions

View File

@@ -28,13 +28,17 @@ namespace OpenRA.GameRules
this.clips = clips;
}
public string GetNext() {
public string GetNext()
{
playing = (playing + 1) % clips.Length;
return clips[playing];
}
public string GetPrev() {
public string GetPrev()
{
playing = (playing + clips.Length - 1) % clips.Length;
return clips[playing];
}
public string GetCurrent(){ return clips[playing];}
}
}