Skip to content

Commit

Permalink
Match sub_08066490 (#648)
Browse files Browse the repository at this point in the history
* Nuke sub_08066490.inc

* Match sub_08066490

* Remove extra bracket
  • Loading branch information
KEKW555 committed Dec 11, 2023
1 parent b163eca commit d35d816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 69 deletions.
66 changes: 0 additions & 66 deletions asm/non_matching/npc23/sub_08066490.inc

This file was deleted.

5 changes: 2 additions & 3 deletions src/npc/npc23.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void sub_08066474(NPC23Entity* this) {
}
}

NONMATCH("asm/non_matching/npc23/sub_08066490.inc", void sub_08066490(NPC23Entity* this, Entity* entity)) {
void sub_08066490(NPC23Entity* this, Entity* entity) {
u32 uVar1;
u32 uVar2;
u32 uVar3;
Expand All @@ -134,7 +134,7 @@ NONMATCH("asm/non_matching/npc23/sub_08066490.inc", void sub_08066490(NPC23Entit
uVar3 = uVar2 + this->unk_82;
uVar4 = uVar2 - this->unk_82;
if (((entity->x.HALF.HI < (int)uVar3) && (entity->x.HALF.HI > (int)uVar4))) {
uVar2 = entity->x.HALF.HI;
uVar2 += (entity->x.HALF.HI - uVar2);
} else {
if (entity->x.HALF.HI >= (int)uVar3) {
uVar2 = uVar3;
Expand All @@ -157,7 +157,6 @@ NONMATCH("asm/non_matching/npc23/sub_08066490.inc", void sub_08066490(NPC23Entit
}
}
}
END_NONMATCH

bool32 sub_0806650C(NPC23Entity* this) {
u32 dir = 0;
Expand Down

0 comments on commit d35d816

Please sign in to comment.