mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-12 23:54:37 +00:00
- Blood: Add interpolation repair for kQAVSGUNUP
(res_id: 74).
This commit is contained in:
parent
df5185038f
commit
7eca7ea166
1 changed files with 7 additions and 0 deletions
|
@ -954,6 +954,13 @@ static void qavRepairTileData(QAV* pQAV)
|
|||
pQAV->frames[0].tiles[4].picnum = -1;
|
||||
pQAV->frames[0].tiles[7].picnum = -1;
|
||||
break;
|
||||
case kQAVSGUNUP:
|
||||
// SGUNUP has a missing frame crucial to proper interpolation experience, so add it back
|
||||
// in and adjust x/y coordinates using difference between frame 0 and 1's tile index 0.
|
||||
pQAV->frames[0].tiles[1] = pQAV->frames[1].tiles[1];
|
||||
pQAV->frames[0].tiles[1].x -= pQAV->frames[1].tiles[0].x - pQAV->frames[0].tiles[0].x;
|
||||
pQAV->frames[0].tiles[1].y -= pQAV->frames[1].tiles[0].y - pQAV->frames[0].tiles[0].y;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue