mirror of
https://github.com/zeldaret/tmc
synced 2026-08-19 13:54:04 -04:00
Match sub_0801B8FC
This commit is contained in:
@@ -31,10 +31,8 @@ void sub_0801B8B0(Entity* this) {
|
||||
}
|
||||
}
|
||||
|
||||
NONMATCH("asm/non_matching/playerItemC/sub_0801B8FC.inc", void sub_0801B8FC(Entity* this)) {
|
||||
void sub_0801B8FC(Entity* this) {
|
||||
Entity* pbVar1;
|
||||
u32 tmp;
|
||||
|
||||
pbVar1 = (Entity*)gPlayerState.field_0x2c;
|
||||
if ((Entity*)gPlayerState.field_0x2c != this) {
|
||||
DeleteThisEntity();
|
||||
@@ -43,14 +41,12 @@ NONMATCH("asm/non_matching/playerItemC/sub_0801B8FC.inc", void sub_0801B8FC(Enti
|
||||
gPlayerState.field_0x2c = (u8*)(u32)gPlayerState.field_0x1d[1];
|
||||
DeleteThisEntity();
|
||||
} else {
|
||||
// TODO regalloc
|
||||
gPlayerState.field_0x2c[0x10] |= 0x80;
|
||||
pbVar1->flags |= 0x80;
|
||||
pbVar1->field_0x3c = 0x21;
|
||||
sub_0801B938(pbVar1);
|
||||
}
|
||||
}
|
||||
}
|
||||
END_NONMATCH
|
||||
|
||||
ASM_FUNC("asm/non_matching/playerItemC/sub_0801B938.inc", void sub_0801B938(Entity* this))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user