mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-06 14:20:11 +00:00
Macros: PLAYER
-> GET_PLAYER(globalCtx)
, ACTIVE_CAM
-> GET_ACTIVE_CAM(globalCtx)
(#921)
* PLAYER -> GET_PLAYER(globalCtx) * ACTIVE_CAM -> GET_ACTIVE_CAM(globalCtx) * PR Suggestions * formatter * Add brackets * remove from actorfixer.py * Bring back actorfixer.py change
This commit is contained in:
parent
f8498478c4
commit
1117783731
281 changed files with 1013 additions and 979 deletions
|
@ -155,7 +155,7 @@ u8 ObjTimeblock_PlayerIsInRange(ObjTimeblock* this, GlobalContext* globalCtx) {
|
|||
Vec3f distance;
|
||||
f32 blockSize;
|
||||
|
||||
func_8002DBD0(&this->dyna.actor, &distance, &PLAYER->actor.world.pos);
|
||||
func_8002DBD0(&this->dyna.actor, &distance, &GET_PLAYER(globalCtx)->actor.world.pos);
|
||||
blockSize = this->dyna.actor.scale.x * 50.0f + 6.0f;
|
||||
// Return true if player's xz position is not inside the block
|
||||
if (blockSize < fabsf(distance.x) || blockSize < fabsf(distance.z)) {
|
||||
|
@ -167,7 +167,7 @@ u8 ObjTimeblock_PlayerIsInRange(ObjTimeblock* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
|
||||
s32 ObjTimeblock_WaitForOcarina(ObjTimeblock* this, GlobalContext* globalCtx) {
|
||||
Player* player = PLAYER;
|
||||
Player* player = GET_PLAYER(globalCtx);
|
||||
|
||||
if (ObjTimeblock_PlayerIsInRange(this, globalCtx)) {
|
||||
if (player->stateFlags2 & 0x1000000) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue