Skip to content

Commit

Permalink
coll progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko committed Feb 23, 2025
1 parent 340efdf commit 00d40da
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions ghidra/COLL.c
Original file line number Diff line number Diff line change
Expand Up @@ -3109,11 +3109,10 @@ void FUN_8001fc40(undefined4 *param_1,int param_2,undefined4 param_3,undefined4
gte_gpf12_b();
uVar5 = gte_stMAC1();
uVar6 = gte_stMAC2();

*(short *)(param_1 + 7) = *(short *)(param_1 + 4) + (short)uVar5;

uVar5 = gte_stMAC3();

// QuadBlockColl hitPos - QuadBlockColl pos <-- input
*(short *)(param_1 + 7) = *(short *)(param_1 + 4) + (short)uVar5;
*(short *)((int)param_1 + 0x1e) = *(short *)((int)param_1 + 0x12) + (short)uVar6;
*(short *)(param_1 + 8) = *(short *)(param_1 + 5) + (short)uVar5;
}
Expand All @@ -3124,7 +3123,9 @@ void FUN_8001fc40(undefined4 *param_1,int param_2,undefined4 param_3,undefined4
else
{
// if killplane
if ((uVar2 & 0x200) != 0) {
if ((uVar2 & 0x200) != 0)
{
// quadblock action flags
param_1[0x69] = param_1[0x69] | 0x4000;
}
}
Expand All @@ -3134,11 +3135,16 @@ void FUN_8001fc40(undefined4 *param_1,int param_2,undefined4 param_3,undefined4
if (iVar7 < 0) {
uVar4 = param_1[0x69];
}
else {
else
{
// quadblock action flags
uVar4 = param_1[0x69];
if (-1 < (iVar7 - *(short *)((int)param_1 + 6) | iVar8 - *(short *)((int)param_1 + 6)))

if (-1 < (iVar7 - *(short *)((int)param_1 + 6) | iVar8 - *(short *)((int)param_1 + 6)))
goto LAB_8001ff14;
}

// quadblock action flags
param_1[0x69] = uVar4 | *(byte *)(iVar10 + 0x38);
}
return;
Expand Down

0 comments on commit 00d40da

Please sign in to comment.