mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 17:30:51 +00:00
- Blood: Add interpolation repair for kQAVVDFIRE4
(res_id: 106) and kQAVVDFIRE5
(res_id: 107).
This commit is contained in:
parent
d34fd124b7
commit
95878bcea1
1 changed files with 16 additions and 0 deletions
|
@ -1239,6 +1239,22 @@ static void qavRepairTileData(QAV* pQAV)
|
||||||
pQAV->frames[i].tiles[0] = backup;
|
pQAV->frames[i].tiles[0] = backup;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case kQAVVDFIRE4:
|
||||||
|
case kQAVVDFIRE5:
|
||||||
|
// VDFIRE4 and requires several index swaps to repair interpolations.
|
||||||
|
// For frame 1, swap tile indices 0 and 1.
|
||||||
|
backup = pQAV->frames[1].tiles[1];
|
||||||
|
pQAV->frames[1].tiles[1] = pQAV->frames[1].tiles[0];
|
||||||
|
pQAV->frames[1].tiles[0] = backup;
|
||||||
|
|
||||||
|
// For the last two frames, swap tile indices 0 and 1.
|
||||||
|
for (i = (pQAV->nFrames - 2); i < pQAV->nFrames; i++)
|
||||||
|
{
|
||||||
|
backup = pQAV->frames[i].tiles[1];
|
||||||
|
pQAV->frames[i].tiles[1] = pQAV->frames[i].tiles[0];
|
||||||
|
pQAV->frames[i].tiles[0] = backup;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue