mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-19 21:41:59 +00:00
Defines for player state flags (#1081)
* script-assisted player state flags * Run formatter * manually convert state flags in `D_80116068` * `PLAYER_STATE_FLAG_` -> `PLAYER_STATE` * Run formatter
This commit is contained in:
parent
2a4fb604fb
commit
6479913daa
96 changed files with 945 additions and 810 deletions
|
@ -170,11 +170,11 @@ s32 ObjTimeblock_WaitForOcarina(ObjTimeblock* this, GlobalContext* globalCtx) {
|
|||
Player* player = GET_PLAYER(globalCtx);
|
||||
|
||||
if (ObjTimeblock_PlayerIsInRange(this, globalCtx)) {
|
||||
if (player->stateFlags2 & 0x1000000) {
|
||||
if (player->stateFlags2 & PLAYER_STATE2_24) {
|
||||
func_8010BD58(globalCtx, OCARINA_ACTION_FREE_PLAY);
|
||||
this->songObserverFunc = ObjTimeblock_WaitForSong;
|
||||
} else {
|
||||
player->stateFlags2 |= 0x800000;
|
||||
player->stateFlags2 |= PLAYER_STATE2_23;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue