fix some of these command hints

This commit is contained in:
tildearrow 2022-08-04 17:47:59 -05:00
parent 67e7e07048
commit 2e41d117d7
2 changed files with 4 additions and 2 deletions

View file

@ -311,6 +311,8 @@ SafeWriter* DivEngine::saveCommand(bool binary) {
break;
case DIV_CMD_PITCH:
break;
case DIV_CMD_PRE_NOTE:
break;
default:
if (!wroteTick) {
wroteTick=true;

View file

@ -62,8 +62,8 @@ const char* cmdName[]={
"HINT_VIBRATO_SHAPE",
"HINT_PITCH",
"HINT_ARPEGGIO",
"HINT_VOL_SLIDE",
"HINT_VOLUME",
"HINT_VOL_SLIDE",
"HINT_PORTA",
"HINT_LEGATO",
@ -340,8 +340,8 @@ void DivEngine::processRow(int i, bool afterDelay) {
// instrument
bool insChanged=false;
if (pat->data[whatRow][2]!=-1) {
dispatchCmd(DivCommand(DIV_CMD_INSTRUMENT,i,pat->data[whatRow][2]));
if (chan[i].lastIns!=pat->data[whatRow][2]) {
dispatchCmd(DivCommand(DIV_CMD_INSTRUMENT,i,pat->data[whatRow][2]));
chan[i].lastIns=pat->data[whatRow][2];
insChanged=true;
if (song.legacyVolumeSlides && chan[i].volume==chan[i].volMax+1) {