Skip to content

Commit

Permalink
Merge pull request #1636 from Gh0stBlade/G2Instance_BuildTransformsFo…
Browse files Browse the repository at this point in the history
…rList

[INSTNCG2]: Update G2Instance_BuildTransformsForList
  • Loading branch information
FedericoMilesi authored Apr 21, 2024
2 parents ce6b9b1 + fe72510 commit 0fc3859
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions KAIN2/Game/G2/INSTNCG2.C
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "Game/PSX/COLLIDES.H"
#include "Game/G2/ANMCTRLR.H"

void G2Instance_BuildTransformsForList(struct _Instance* listHead)//Matching - 99.74%
void G2Instance_BuildTransformsForList(struct _Instance* listHead) // Matching - 100%
{
struct _Instance* instance;

Expand All @@ -24,7 +24,7 @@ void G2Instance_BuildTransformsForList(struct _Instance* listHead)//Matching - 9
(instance->oldRotation.y == instance->rotation.y) &&
(instance->oldRotation.z == instance->rotation.z) &&
(instance->matrix != NULL) && (((instance->object->animList == NULL)) ||
(instance->object->oflags2 & 0x40000000) || !(instance->anim.flags & 0x1))))
(instance->object->oflags2 & 0x40000000) || !(instance->anim.flags & 0x1))))
{
_G2Instance_BuildDeactivatedTransforms(instance);
}
Expand All @@ -43,7 +43,7 @@ void G2Instance_BuildTransformsForList(struct _Instance* listHead)//Matching - 9
{
if (instance->rebuildCallback != NULL)
{
if (instance->rebuildCallback(instance) != FALSE)
if (instance->rebuildCallback(instance) != G2FALSE)
{
G2Anim_UpdateStoredFrame(&instance->anim);

Expand Down

0 comments on commit 0fc3859

Please sign in to comment.