warn user if we cannot play
This commit is contained in:
parent
c6c05582bd
commit
a7ded3325a
3 changed files with 16 additions and 8 deletions
|
|
@ -1105,9 +1105,13 @@ void FurnaceGUI::play(int row) {
|
|||
memset(lastIns,-1,sizeof(int)*DIV_MAX_CHANS);
|
||||
if (!followPattern) e->setOrder(curOrder);
|
||||
if (row>0) {
|
||||
e->playToRow(row);
|
||||
if (!e->playToRow(row)) {
|
||||
showError("the song is over!");
|
||||
}
|
||||
} else {
|
||||
e->play();
|
||||
if (!e->play()) {
|
||||
showError("the song is over!");
|
||||
}
|
||||
}
|
||||
curNibble=false;
|
||||
orderNibble=false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue