Fix volume event handling for .FAR modules.

This commit is contained in:
AliceLR
2020-10-19 01:36:18 -06:00
committed by Ozkan Sezer
parent 8ae6d519fe
commit 7d6d824354

View File

@@ -231,10 +231,8 @@ static int far_load(struct module_data *m, HIO_HANDLE *f, const int start)
if (event->note || ins)
event->ins = ins + 1;
vol = 16 * LSN(vol) + MSN(vol);
if (vol)
event->vol = vol - 0x10; /* ? */
if (vol >= 0x01 && vol <= 0x10)
event->vol = (vol - 1) * 16 + 1;
event->fxt = fx[MSN(fxb)];
event->fxp = LSN(fxb);