diff options
Diffstat (limited to 'apps/plugins/mikmod/load_it.c')
-rw-r--r-- | apps/plugins/mikmod/load_it.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/plugins/mikmod/load_it.c b/apps/plugins/mikmod/load_it.c index 842fafe471..7f966339cf 100644 --- a/apps/plugins/mikmod/load_it.c +++ b/apps/plugins/mikmod/load_it.c | |||
@@ -446,7 +446,7 @@ int IT_Load(int curious) | |||
446 | int t,u,lp; | 446 | int t,u,lp; |
447 | INSTRUMENT *d; | 447 | INSTRUMENT *d; |
448 | SAMPLE *q; | 448 | SAMPLE *q; |
449 | int compressed=0; | 449 | /* int compressed=0; */ |
450 | 450 | ||
451 | numtrk=0; | 451 | numtrk=0; |
452 | filters=0; | 452 | filters=0; |
@@ -672,7 +672,7 @@ int IT_Load(int curious) | |||
672 | if(s.flag&2) q->flags|=SF_16BITS; | 672 | if(s.flag&2) q->flags|=SF_16BITS; |
673 | if((s.flag&8)&&(mh->cwt>=0x214)) { | 673 | if((s.flag&8)&&(mh->cwt>=0x214)) { |
674 | q->flags|=SF_ITPACKED; | 674 | q->flags|=SF_ITPACKED; |
675 | compressed=1; | 675 | /* compressed=1; */ |
676 | } | 676 | } |
677 | if(s.flag&16) q->flags|=SF_LOOP; | 677 | if(s.flag&16) q->flags|=SF_LOOP; |
678 | if(s.flag&64) q->flags|=SF_BIDI; | 678 | if(s.flag&64) q->flags|=SF_BIDI; |
@@ -963,8 +963,6 @@ int IT_Load(int curious) | |||
963 | if(!AllocTracks()) return 0; | 963 | if(!AllocTracks()) return 0; |
964 | 964 | ||
965 | for(t=0;t<of.numpat;t++) { | 965 | for(t=0;t<of.numpat;t++) { |
966 | UWORD packlen; | ||
967 | |||
968 | /* seek to pattern position */ | 966 | /* seek to pattern position */ |
969 | if(!paraptr[mh->insnum+mh->smpnum+t]) { /* 0 -> empty 64 row pattern */ | 967 | if(!paraptr[mh->insnum+mh->smpnum+t]) { /* 0 -> empty 64 row pattern */ |
970 | of.pattrows[t]=64; | 968 | of.pattrows[t]=64; |
@@ -977,7 +975,7 @@ int IT_Load(int curious) | |||
977 | } | 975 | } |
978 | } else { | 976 | } else { |
979 | _mm_fseek(modreader,((long)paraptr[mh->insnum+mh->smpnum+t]),SEEK_SET); | 977 | _mm_fseek(modreader,((long)paraptr[mh->insnum+mh->smpnum+t]),SEEK_SET); |
980 | packlen=_mm_read_I_UWORD(modreader); | 978 | (void)_mm_read_I_UWORD(modreader); |
981 | of.pattrows[t]=_mm_read_I_UWORD(modreader); | 979 | of.pattrows[t]=_mm_read_I_UWORD(modreader); |
982 | _mm_read_I_ULONG(modreader); | 980 | _mm_read_I_ULONG(modreader); |
983 | if(!IT_ReadPattern(of.pattrows[t])) return 0; | 981 | if(!IT_ReadPattern(of.pattrows[t])) return 0; |