mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 12:10:41 +00:00
- Blood: Add interpolation repair for kQAVSHOTUP
(res_id: 50).
This commit is contained in:
parent
e00f76b0aa
commit
ba91590028
1 changed files with 13 additions and 0 deletions
|
@ -852,6 +852,19 @@ static void qavRepairTileData(QAV* pQAV)
|
||||||
pQAV->frames[i].tiles[1].picnum = -1;
|
pQAV->frames[i].tiles[1].picnum = -1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case kQAVSHOTUP:
|
||||||
|
// SHOTUP is missing tiles for the first two frames.
|
||||||
|
// Clone from 3rd frame and amend x/y coordinates for tile indices 1 and 2 on frames 0 and 1.
|
||||||
|
for (i = 0; i < 2; i++)
|
||||||
|
{
|
||||||
|
for (j = 1; j < 3; j++)
|
||||||
|
{
|
||||||
|
pQAV->frames[i].tiles[j] = pQAV->frames[2].tiles[j];
|
||||||
|
pQAV->frames[i].tiles[j].x += pQAV->frames[i].tiles[0].x - pQAV->frames[2].tiles[0].x;
|
||||||
|
pQAV->frames[i].tiles[j].y += pQAV->frames[i].tiles[0].y - pQAV->frames[2].tiles[0].y;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue