Skip to content

Conversation

@daft7
Copy link
Contributor

@daft7 daft7 commented Feb 16, 2025

Added several methods with partial code match to zNPCSpawner and some light struct edits to incorporate these.

@daft7 daft7 requested a review from SquareMan February 16, 2025 21:12
Copy link
Member

@SquareMan SquareMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Welcome Aboard!

Left a few nits on some stuff since some of it is still very "decompiler-esque" but not gonna block merging since this code is all very WIP still anyways.

Comment on lines +196 to +207
do
{
temp_r29 = var_r30->npc_owner;
if (((zNPCCommon*)var_r30->npc_owner != NULL) && ((s32)temp_r29->flg_vuln == 1))
{
XOrdAppend(&this->pendlist, (void*)temp_r29);
temp_r29->flg_vuln = 2;
}
var_r28 += 1;
var_r30 += 0xC;
} while (var_r28 < 0x10);
return &this->actvlist;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably some sort of for loop over an array, with var_r29 and var_r30 being compiler generated variables related to indexing an array.

Comment on lines +250 to +256
zNPCCommon* temp_r0_2;
zNPCCommon* temp_r0_3;
zNPCCommon* temp_r0_4;
zNPCCommon* temp_r0_5;
zNPCCommon* temp_r0_6;
zNPCCommon* temp_r0_7;
zNPCCommon* temp_r0_8;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eventually all these unused variables from decompiler output should be cleaned up

@SquareMan SquareMan merged commit acedee0 into bfbbdecomp:main Feb 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants