mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- Blood: Add interpolation repair for kQAV2SGUNPRE
(res_id: 86). Thanks again to @Phredreeke for the tiles with overlays baked in for this to work properly.
This commit is contained in:
parent
ed92ec9af9
commit
99ab8fa726
1 changed files with 24 additions and 0 deletions
|
@ -1098,6 +1098,30 @@ static void qavRepairTileData(QAV* pQAV)
|
|||
pQAV->frames[29].tiles[1].picnum = pQAV->frames[29].tiles[3].picnum = pQAV->frames[29].tiles[6].picnum = -1;
|
||||
break;
|
||||
}
|
||||
case kQAV2SGUNPRE:
|
||||
{
|
||||
// 2SGUNPRE's overlay sizes vary from tile to tile and don't interpolate properly.
|
||||
// Use repaired tiles from Phredreeke where the overlays are baked in.
|
||||
constexpr int tilearray[2][30] = {
|
||||
{
|
||||
9305, 9306, 9307, 9308
|
||||
},
|
||||
{
|
||||
9307, 9306, 9305, 9309
|
||||
}
|
||||
};
|
||||
|
||||
// Loop through all frames to remove overlay and replace use of 3240 with that from tilearray and disable overlays.
|
||||
for (i = 0; i < pQAV->nFrames; i++)
|
||||
{
|
||||
pQAV->frames[i].tiles[0].picnum = tilearray[0][i];
|
||||
pQAV->frames[i].tiles[4].picnum = -1;
|
||||
|
||||
pQAV->frames[i].tiles[2].picnum = tilearray[1][i];
|
||||
pQAV->frames[i].tiles[5].picnum = -1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue