mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-10 00:40:16 +00:00
Big cleanup (#775)
* Adult and child2 macros OK * ICHAIN cleanup * almost all overlay data * format.sh * func_8002FBAC NON_EQUIVALENT * PR fixes (MZXrules) * fix * change //@ bug to //! @bug * merge master and missed a //@bug * fix ruto * some more cleanup (#2) * more `! @bug` formatting cleanup * parenthesis cleanup * hex naviEnemyId * run formatter * replace `IS_NOT_` macros with `!IS_` * run formatter * run formatter * PR fixes (fig) * Missed something Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
This commit is contained in:
parent
17c79a8f60
commit
556cdad7eb
177 changed files with 902 additions and 862 deletions
|
@ -328,14 +328,14 @@ void DemoKankyo_SetupType(DemoKankyo* this, GlobalContext* globalCtx) {
|
|||
if (this->warpTimer == 1) {
|
||||
if (globalCtx->sceneNum == SCENE_TOKINOMA) {
|
||||
D_8098CF84 = 25;
|
||||
if (LINK_IS_CHILD) {
|
||||
if (!LINK_IS_ADULT) {
|
||||
globalCtx->csCtx.segment = gChildWarpInToTCS;
|
||||
} else {
|
||||
globalCtx->csCtx.segment = gAdultWarpInToTCS;
|
||||
}
|
||||
} else {
|
||||
D_8098CF84 = 32;
|
||||
if (LINK_IS_CHILD) {
|
||||
if (!LINK_IS_ADULT) {
|
||||
globalCtx->csCtx.segment = gChildWarpInCS;
|
||||
} else {
|
||||
globalCtx->csCtx.segment = gAdultWarpInCS;
|
||||
|
@ -349,13 +349,13 @@ void DemoKankyo_SetupType(DemoKankyo* this, GlobalContext* globalCtx) {
|
|||
break;
|
||||
case DEMOKANKYO_WARP_IN:
|
||||
if (globalCtx->sceneNum == SCENE_TOKINOMA) {
|
||||
if (LINK_IS_CHILD) {
|
||||
if (!LINK_IS_ADULT) {
|
||||
globalCtx->csCtx.segment = gChildWarpOutToTCS;
|
||||
} else {
|
||||
globalCtx->csCtx.segment = gAdultWarpOutToTCS;
|
||||
}
|
||||
} else {
|
||||
if (LINK_IS_CHILD) {
|
||||
if (!LINK_IS_ADULT) {
|
||||
globalCtx->csCtx.segment = gChildWarpOutCS;
|
||||
} else {
|
||||
globalCtx->csCtx.segment = gAdultWarpOutCS;
|
||||
|
@ -446,7 +446,7 @@ void DemoKankyo_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||
} else if (!Actor_IsFacingAndNearPlayer(&this->actor, 300.0f, 0x7530)) {
|
||||
break;
|
||||
} else {
|
||||
if (LINK_IS_CHILD) {
|
||||
if (!LINK_IS_ADULT) {
|
||||
if (globalCtx->csCtx.frames < 170 || globalCtx->csCtx.state == CS_STATE_IDLE) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue