1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-07 14:50:15 +00:00

Decompiles Overlay_DoRelocation (#149)

* decompile Overlay_DoRelocation

* add non-matching comments
This commit is contained in:
krimtonz 2020-05-20 07:53:42 -05:00 committed by GitHub
parent 43dfaa7518
commit 9a478a96ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 129 additions and 3 deletions

View file

@ -208,7 +208,7 @@ void func_809ECA50(EnDha* this, GlobalContext* globalCtx) {
}
} else {
unkVar = ~0x80;
if (player->stateFlags2 & 0x80) {
if (player->stateFlags2 & 0x80) {
if (&this->actor == player->actor.attachedA) {
player->stateFlags2 &= unkVar;
player->actor.attachedA = NULL;
@ -230,7 +230,7 @@ void func_809ECF60(EnDha* this) {
void func_809ECF8C(EnDha* this, GlobalContext* globalCtx) {
Player* player = PLAYER;
if (player->stateFlags2 & 0x80) {
if (player->stateFlags2 & 0x80) {
if (&this->actor == player->actor.attachedA) {
player->stateFlags2 &= ~0x80;
player->actor.attachedA = NULL;
@ -267,7 +267,7 @@ void EnDha_Die(EnDha* this, GlobalContext* globalCtx) {
Vec3f vector;
Player* player = PLAYER;
if (player->stateFlags2 & 0x80) {
if (player->stateFlags2 & 0x80) {
if (&this->actor == player->actor.attachedA) {
player->stateFlags2 &= ~0x80;
player->actor.attachedA = NULL;