mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Removed legacy TR5 search object code which caused issues with meshswaps
This commit is contained in:
parent
be338dcbfa
commit
f6845961ca
2 changed files with 1 additions and 24 deletions
|
@ -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.
|
||||
|
|
|
@ -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])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue