Skip to content

Commit c5819c6

Browse files
committed
Fixed Bxx effect bug in play/record pattern mode
1 parent d18178c commit c5819c6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/pt2_header.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "pt2_unicode.h"
1515
#include "pt2_palette.h"
1616

17-
#define PROG_VER_STR "1.48"
17+
#define PROG_VER_STR "1.49"
1818

1919
#ifdef _WIN32
2020
#define DIR_DELIMITER '\\'

src/pt2_replayer.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,10 @@ static void funkIt(moduleChannel_t *ch)
334334

335335
static void positionJump(moduleChannel_t *ch)
336336
{
337-
modOrder = (ch->n_cmd & 0xFF) - 1; // B00 results in -1, but it safely jumps to order 0
337+
// original PT doesn't do this check, but we have to
338+
if (editor.playMode != PLAY_MODE_PATTERN || (editor.currMode == MODE_RECORD && editor.recordMode != RECORD_PATT))
339+
modOrder = (ch->n_cmd & 0xFF) - 1; // B00 results in -1, but it safely jumps to order 0
340+
338341
pBreakPosition = 0;
339342
posJumpAssert = true;
340343
}

0 commit comments

Comments
 (0)