- Blood: Add interpolation repair for kQAV2SGUNFIR (res_id: 84). Thanks to @Phredreeke for the tiles with overlays baked in for this to work properly.

This commit is contained in:
Mitchell Richters 2021-08-14 14:46:27 +10:00
parent 073f0d953f
commit 22e348613f
7 changed files with 29 additions and 0 deletions

View file

@ -1046,6 +1046,30 @@ static void qavRepairTileData(QAV* pQAV)
// Set frame 0 tile 3 picnum to 3311. // Set frame 0 tile 3 picnum to 3311.
pQAV->frames[0].tiles[3].picnum = 3311; pQAV->frames[0].tiles[3].picnum = 3311;
break; break;
case kQAV2SGUNFIR:
{
// 2SGUNFIR'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][8] = {
{
9306, 9307, 9308, 9309, 9305, 9306, 9307, 3240
},
{
3240, 9307, 9306, 9305, 9309, 9308, 9307, 9306
}
};
// Loop through each frame 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: default:
return; return;
} }

View file

@ -66,3 +66,8 @@ tilefromtexture 9301 { file "tiles/9301(3227+3229).png" }
tilefromtexture 9302 { file "tiles/9302(3227+3230).png" } tilefromtexture 9302 { file "tiles/9302(3227+3230).png" }
tilefromtexture 9303 { file "tiles/9303(3227+3231).png" } tilefromtexture 9303 { file "tiles/9303(3227+3231).png" }
tilefromtexture 9304 { file "tiles/9304(3227+3232).png" } tilefromtexture 9304 { file "tiles/9304(3227+3232).png" }
tilefromtexture 9305 { file "tiles/9305(3240+3228).png" }
tilefromtexture 9306 { file "tiles/9306(3240+3229).png" }
tilefromtexture 9307 { file "tiles/9307(3240+3230).png" }
tilefromtexture 9308 { file "tiles/9308(3240+3231).png" }
tilefromtexture 9309 { file "tiles/9309(3240+3232).png" }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB