mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-05 05:10:55 +00:00
- Blood: Add interpolation repair for kQAVSGUNPRE
(res_id: 79). Thanks again to @Phredreeke for the tiles with overlays baked in for this to work properly.
This commit is contained in:
parent
1033049b8c
commit
df3bc4d90a
1 changed files with 11 additions and 0 deletions
|
@ -1007,6 +1007,17 @@ static void qavRepairTileData(QAV* pQAV)
|
||||||
pQAV->frames[46].tiles[1] = backup;
|
pQAV->frames[46].tiles[1] = backup;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kQAVSGUNPRE:
|
||||||
|
// SGUNPRE's overlay sizes vary from tile to tile and don't interpolate properly.
|
||||||
|
// Use repaired tiles from Phredreeke where the overlays are baked in.
|
||||||
|
|
||||||
|
// For the two last frames, change tile index 0 picnum from 3227 to 9300.
|
||||||
|
for (i = pQAV->nFrames - 2; i < pQAV->nFrames; i++)
|
||||||
|
{
|
||||||
|
pQAV->frames[i].tiles[0].picnum = 9300;
|
||||||
|
pQAV->frames[i].tiles[2].picnum = -1;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue