mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 15:40:58 +00:00
- Blood: Add interpolation repair for kQAVBUNDOWN
(res_id: 17).
This commit is contained in:
parent
33d63724f7
commit
037fcfd446
1 changed files with 11 additions and 0 deletions
|
@ -454,6 +454,17 @@ static void qavRepairTileData(QAV* pQAV)
|
|||
}
|
||||
}
|
||||
break;
|
||||
case kQAVBUNDOWN:
|
||||
// BUNDOWN requires some tile index swaps to be cleaned up to avoid using our own callback.
|
||||
// For frames 3 till the end, backup tile index 3, move indices 1 and 2 down, then restore backed up tile index 3 as 1.
|
||||
for (i = 3; i < pQAV->nFrames; i++)
|
||||
{
|
||||
backup = pQAV->frames[i].tiles[3];
|
||||
pQAV->frames[i].tiles[3] = pQAV->frames[i].tiles[2];
|
||||
pQAV->frames[i].tiles[2] = pQAV->frames[i].tiles[1];
|
||||
pQAV->frames[i].tiles[1] = backup;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue