Removed legacy TR5 search object code which caused issues with meshswaps

This commit is contained in:
Lwmte 2025-04-22 09:44:35 +02:00
parent be338dcbfa
commit f6845961ca
2 changed files with 1 additions and 24 deletions

View file

@ -20,6 +20,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
* Fixed caustics not rendered correctly if texture compression was enabled.
* Fixed exclusion blend mode not working correctly.
* Fixed SSAO incorrectly applied through alpha blended textures.
* Removed legacy TR5 search object code which caused issues with meshswaps.
### Lua API changes
* Added `View.PlayVideo`, `View.StopVideo`, and other helper functions for the video playback.

View file

@ -1239,30 +1239,6 @@ void SearchObjectControl(short itemNumber)
AnimateItem(item);
int frameNumber = item->Animation.FrameNumber - GetAnimData(item).frameBase;
if (item->ObjectNumber == ID_SEARCH_OBJECT1)
{
if (frameNumber > 0)
{
item->SetMeshSwapFlags(NO_JOINT_BITS);
item->MeshBits = ALL_JOINT_BITS;
}
else
{
item->SetMeshSwapFlags(ALL_JOINT_BITS);
item->MeshBits = 7;
}
}
else if (item->ObjectNumber == ID_SEARCH_OBJECT2)
{
if (frameNumber == 18)
{
item->MeshBits = 1;
}
else if (frameNumber == 172)
{
item->MeshBits = 2;
}
}
if (frameNumber == SearchCollectFrames[objectNumber])
{