From 02760ddcbce45b828a4fc559db83021ee0a3e06d Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 15 Mar 2022 22:16:47 -0500 Subject: [PATCH] MOD import: fix brainless 3 duration 0:00 --- src/engine/fileOps.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/fileOps.cpp b/src/engine/fileOps.cpp index 65ef0113d..dd1e8ad1a 100644 --- a/src/engine/fileOps.cpp +++ b/src/engine/fileOps.cpp @@ -1489,12 +1489,14 @@ bool DivEngine::loadMod(unsigned char* file, size_t len) { effectState[4]=fxVal; break; case 11: // jump to pos - case 13: // break to row writeFxCol(fxTyp,fxVal); break; case 12: // set vol data[row][3]=fxVal; break; + case 13: // break to row (BCD) + writeFxCol(fxTyp,((fxVal>>4)*10)+(fxVal&15)); + break; case 15: // set speed // TODO: somehow handle VBlank tunes // TODO: klisje is still broken, perhaps because there wasn't tempo set back then?