From 2e41d117d7b259ccb45c89a50602bdfdef368a67 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 4 Aug 2022 17:47:59 -0500 Subject: [PATCH] fix some of these command hints --- src/engine/engine.cpp | 2 ++ src/engine/playback.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 9b532c0bf..5d9224002 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -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; diff --git a/src/engine/playback.cpp b/src/engine/playback.cpp index 8fd20d5f9..ee9115fd8 100644 --- a/src/engine/playback.cpp +++ b/src/engine/playback.cpp @@ -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) {