mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
Update DUMB to revision 02190e007b4967b8a546f64a3934724817ff5c3a
- Fixed MOD pattern count calculation in weird cases where the last sample is missing four bytes SVN r4104 (trunk)
This commit is contained in:
parent
2b2a86a13e
commit
5c65f7188e
1 changed files with 1 additions and 1 deletions
|
@ -647,7 +647,7 @@ static DUMB_IT_SIGDATA *it_mod_load_sigdata(DUMBFILE *f, int rstrict)
|
|||
}
|
||||
}
|
||||
if (remain > total_sample_size) {
|
||||
sigdata->n_patterns = ( remain - total_sample_size ) / ( 256 * sigdata->n_pchannels );
|
||||
sigdata->n_patterns = ( remain - total_sample_size + 4 ) / ( 256 * sigdata->n_pchannels );
|
||||
if (fft == DUMB_ID('M',0,0,0) || fft == DUMB_ID('8',0,0,0)) {
|
||||
remain -= sigdata->n_patterns * 256 * sigdata->n_pchannels;
|
||||
if (dumbfile_skip(f, remain - total_sample_size)) {
|
||||
|
|
Loading…
Reference in a new issue