Skip to content

Commit

Permalink
finish db_802262E0
Browse files Browse the repository at this point in the history
  • Loading branch information
BR- committed Jan 27, 2024
1 parent 3a4b3cb commit cc80c85
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/melee/db/db_2253.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,15 +599,16 @@ void db_802262E0(int player)
OSReport("couldn't get Item struct.(CZako)");
return;
}
if ((spawnItem.kind < 0xD0 || spawnItem.kind >= 0xEA ||
it_804A0F60[spawnItem.kind] != 0) &&
(spawnItem.kind != 0x22 || it_8026C704() == 0))
if (spawnItem.kind < 0xD0 || spawnItem.kind >= 0xEA ||
it_804A0F60[spawnItem.kind - 0xD0] != 0)
{
{
HSD_GObj* gobj = Item_80268B18(&spawnItem);
if (gobj != NULL) {
GET_ITEM(gobj)->xDAA_flag.u8 |= db_804D6B3C;
efSync_Spawn(0x420, gobj, &spawnItem.prev_pos);
if (spawnItem.kind != 0x22 || it_8026C704() == 0) {
{
HSD_GObj* gobj = Item_80268B18(&spawnItem);
if (gobj != NULL) {
GET_ITEM(gobj)->xDAA_flag.u8 |= db_804D6B3C;
efSync_Spawn(0x420, gobj, &spawnItem.prev_pos);
}
}
}
}
Expand Down

0 comments on commit cc80c85

Please sign in to comment.