Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RAZIEL]: Update SetStates #1643

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions KAIN2/Game/RAZIEL/RAZIEL.C
Original file line number Diff line number Diff line change
Expand Up @@ -4637,7 +4637,7 @@ void RazielPost(struct _Instance* instance, unsigned long Message, unsigned long
}
}

int SetStates(struct _Instance* instance, struct GameTracker* GT, long* controlCommand, int AnalogLength)//Matching - 92.36%
int SetStates(struct _Instance* instance, struct GameTracker* GT, long* controlCommand, int AnalogLength) // Matching - 100%
{
int i;
int Event;
Expand All @@ -4661,17 +4661,12 @@ int SetStates(struct _Instance* instance, struct GameTracker* GT, long* controlC

LoopCounter++;

for(i = 0; i < 3;)
for(i = 0; i < 3; i++)
{
Ptr = DeMessageQueue(&Raziel.State.SectionList[i].Defer);

if (Ptr != NULL)
{
EnMessageQueue(&Raziel.State.SectionList[i].Event, Ptr);
continue;
}

i++;
while (Ptr = DeMessageQueue(&Raziel.State.SectionList[i].Defer), Ptr != 0)
{
EnMessageQueue(&Raziel.State.SectionList[i].Event, Ptr);
}
}

if (instance->offset.x != 0 || instance->offset.y != 0 || instance->offset.z != 0)
Expand Down Expand Up @@ -4746,7 +4741,7 @@ int SetStates(struct _Instance* instance, struct GameTracker* GT, long* controlC
{
if ((Data1 & 0x1000))
{
Event = 0x1000000;
Event = 0x1000001;
}
else
{
Expand Down Expand Up @@ -4902,7 +4897,6 @@ int SetStates(struct _Instance* instance, struct GameTracker* GT, long* controlC
return 1;
}


void ProcessConstrict() // Matching - 100%
{
if ((Raziel.constrictFlag & 1))
Expand Down