shithub: ft²

Download patch

ref: 4f7f08a867b7e448ce9580279134f4cf7ff82d03
parent: 3e7b18472cba687a04f6cd9be66ad531ed24283c
author: Olav Sørensen <olav.sorensen@live.no>
date: Sun Apr 4 17:30:30 EDT 2021

S3M loader: If overflown parameter in Axx -> Fxx conversion, clamp to $1F instead of removing effect

--- a/src/modloaders/ft2_load_s3m.c
+++ b/src/modloaders/ft2_load_s3m.c
@@ -287,10 +287,14 @@
 							case 1: // A
 							{
 								ton.effTyp = 0xF;
-								if (ton.eff == 0 || ton.eff > 0x1F)
+								if (ton.eff == 0)
 								{
 									ton.effTyp = 0;
 									ton.eff = 0;
+								}
+								else if (ton.eff > 0x1F)
+								{
+									ton.eff = 0x1F;
 								}
 							}
 							break;