mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
- Blood: Add interpolation repair for kQAVSGUNPOST
(res_id: 80). Thanks again to @Phredreeke for the tiles with overlays baked in for this to work properly.
This commit is contained in:
parent
df3bc4d90a
commit
7bbf478859
1 changed files with 15 additions and 0 deletions
|
@ -1018,6 +1018,21 @@ static void qavRepairTileData(QAV* pQAV)
|
|||
pQAV->frames[i].tiles[2].picnum = -1;
|
||||
}
|
||||
break;
|
||||
case kQAVSGUNPOST:
|
||||
{
|
||||
// SGUNPOST'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[8] = { 9301, 9301, 9302, 9302, 9303, 9303, 9304, 9304 };
|
||||
|
||||
// Loop through each frame to remove overlay and replace use of 3227 with that from tilearray.
|
||||
for (i = 0; i < pQAV->nFrames; i++)
|
||||
{
|
||||
pQAV->frames[i].tiles[1].picnum = tilearray[i];
|
||||
pQAV->frames[i].tiles[2].picnum = -1;
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue