mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 11:30:44 +00:00
- Blood: Add interpolation repair for kQAVVDFIRE3
(res_id: 105).
This commit is contained in:
parent
a3a2cd8da8
commit
d34fd124b7
1 changed files with 15 additions and 0 deletions
|
@ -1224,6 +1224,21 @@ static void qavRepairTileData(QAV* pQAV)
|
||||||
pQAV->frames[i].tiles[1].picnum = -1;
|
pQAV->frames[i].tiles[1].picnum = -1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case kQAVVDFIRE3:
|
||||||
|
// VDFIRE3 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 frames 13 till end, swap tile indices 0 and 1.
|
||||||
|
for (i = 13; 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