mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-12 02:44:54 +00:00
Merge commit '87a6e75242
' into doc_pause_menu
This commit is contained in:
commit
2b24b8a07a
60 changed files with 4352 additions and 15732 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
// For retail BSS ordering, the block number of cbf in Math3D_CylVsCylOverlapCenterDist
|
||||
// must be 0.
|
||||
#pragma increment_block_number 190
|
||||
#pragma increment_block_number 187
|
||||
|
||||
s32 Math3D_LineVsLineClosestTwoPoints(Vec3f* lineAPointA, Vec3f* lineAPointB, Vec3f* lineBPointA, Vec3f* lineBPointB,
|
||||
Vec3f* lineAClosestToB, Vec3f* lineBClosestToA);
|
||||
|
|
|
@ -433,7 +433,8 @@ void func_8002C7BC(TargetContext* targetCtx, Player* player, Actor* actorArg, Pl
|
|||
|
||||
unkActor = NULL;
|
||||
|
||||
if ((player->unk_664 != NULL) && (player->unk_84B[player->unk_846] == 2)) {
|
||||
if ((player->unk_664 != NULL) &&
|
||||
(player->controlStickDirections[player->controlStickDataIndex] == PLAYER_STICK_DIR_BACKWARD)) {
|
||||
targetCtx->unk_94 = NULL;
|
||||
} else {
|
||||
func_80032AF0(play, &play->actorCtx, &unkActor, player);
|
||||
|
@ -1357,8 +1358,8 @@ void Actor_UpdateBgCheckInfo(PlayState* play, Actor* actor, f32 wallCheckHeight,
|
|||
waterBoxYSurface = actor->world.pos.y;
|
||||
if (WaterBox_GetSurface1(play, &play->colCtx, actor->world.pos.x, actor->world.pos.z, &waterBoxYSurface,
|
||||
&waterBox)) {
|
||||
actor->yDistToWater = waterBoxYSurface - actor->world.pos.y;
|
||||
if (actor->yDistToWater < 0.0f) {
|
||||
actor->depthInWater = waterBoxYSurface - actor->world.pos.y;
|
||||
if (actor->depthInWater < 0.0f) {
|
||||
actor->bgCheckFlags &= ~(BGCHECKFLAG_WATER | BGCHECKFLAG_WATER_TOUCH);
|
||||
} else {
|
||||
if (!(actor->bgCheckFlags & BGCHECKFLAG_WATER)) {
|
||||
|
@ -1378,7 +1379,7 @@ void Actor_UpdateBgCheckInfo(PlayState* play, Actor* actor, f32 wallCheckHeight,
|
|||
}
|
||||
} else {
|
||||
actor->bgCheckFlags &= ~(BGCHECKFLAG_WATER | BGCHECKFLAG_WATER_TOUCH);
|
||||
actor->yDistToWater = BGCHECK_Y_MIN;
|
||||
actor->depthInWater = BGCHECK_Y_MIN;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1834,7 +1835,7 @@ void func_8002F850(PlayState* play, Actor* actor) {
|
|||
s32 surfaceSfxOffset;
|
||||
|
||||
if (actor->bgCheckFlags & BGCHECKFLAG_WATER) {
|
||||
if (actor->yDistToWater < 20.0f) {
|
||||
if (actor->depthInWater < 20.0f) {
|
||||
surfaceSfxOffset = SURFACE_SFX_OFFSET_WATER_SHALLOW;
|
||||
} else {
|
||||
surfaceSfxOffset = SURFACE_SFX_OFFSET_WATER_DEEP;
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
#include "z64camera.h"
|
||||
|
||||
#include "assets/scenes/indoors/tokinoma/tokinoma_scene.h"
|
||||
|
||||
#include "assets/scenes/overworld/ganon_tou/ganon_tou_scene.h"
|
||||
#include "assets/scenes/overworld/spot00/spot00_scene.h"
|
||||
#include "assets/scenes/overworld/spot01/spot01_scene.h"
|
||||
#include "assets/scenes/overworld/spot02/spot02_scene.h"
|
||||
|
@ -24,7 +26,6 @@
|
|||
#include "assets/scenes/dungeons/ddan/ddan_scene.h"
|
||||
#include "assets/scenes/dungeons/ydan/ydan_scene.h"
|
||||
#include "assets/scenes/dungeons/ganontika/ganontika_scene.h"
|
||||
#include "assets/scenes/dungeons/ganon_tou/ganon_tou_scene.h"
|
||||
#include "assets/scenes/dungeons/jyasinboss/jyasinboss_scene.h"
|
||||
#include "assets/scenes/dungeons/ice_doukutu/ice_doukutu_scene.h"
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#include "global.h"
|
||||
#include "quake.h"
|
||||
|
||||
#include "assets/scenes/indoors/miharigoya/miharigoya_scene.h"
|
||||
#include "assets/scenes/indoors/souko/souko_scene.h"
|
||||
|
||||
#include "assets/scenes/overworld/spot00/spot00_scene.h"
|
||||
#include "assets/scenes/overworld/spot00/spot00_room_0.h"
|
||||
#include "assets/scenes/overworld/spot01/spot01_scene.h"
|
||||
|
@ -10,17 +13,15 @@
|
|||
#include "assets/scenes/overworld/spot16/spot16_room_0.h"
|
||||
#include "assets/scenes/overworld/spot18/spot18_scene.h"
|
||||
#include "assets/scenes/overworld/spot20/spot20_scene.h"
|
||||
#include "assets/scenes/overworld/souko/souko_scene.h"
|
||||
|
||||
#include "assets/scenes/dungeons/men/men_scene.h"
|
||||
#include "assets/scenes/dungeons/ddan/ddan_scene.h"
|
||||
#include "assets/scenes/dungeons/ydan/ydan_scene.h"
|
||||
#include "assets/scenes/dungeons/Bmori1/Bmori1_scene.h"
|
||||
#include "assets/scenes/dungeons/MIZUsin/MIZUsin_scene.h"
|
||||
#include "assets/scenes/dungeons/ddan/ddan_scene.h"
|
||||
#include "assets/scenes/dungeons/gerudoway/gerudoway_scene.h"
|
||||
#include "assets/scenes/dungeons/jyasinzou/jyasinzou_scene.h"
|
||||
#include "assets/scenes/indoors/miharigoya/miharigoya_scene.h"
|
||||
#include "assets/scenes/dungeons/ice_doukutu/ice_doukutu_scene.h"
|
||||
#include "assets/scenes/dungeons/jyasinzou/jyasinzou_scene.h"
|
||||
#include "assets/scenes/dungeons/men/men_scene.h"
|
||||
#include "assets/scenes/dungeons/ydan/ydan_scene.h"
|
||||
|
||||
#include "overlays/actors/ovl_Bg_Dodoago/z_bg_dodoago.h"
|
||||
|
||||
|
@ -418,7 +419,11 @@ void Scene_DrawConfigWaterTemple(PlayState* play) {
|
|||
spAC = play->roomCtx.unk_74[1] & 0xFF;
|
||||
gameplayFrames = play->gameplayFrames;
|
||||
|
||||
#if !OOT_MQ
|
||||
gSPSegment(POLY_XLU_DISP++, 0x06, SEGMENTED_TO_VIRTUAL(D_8012A330[((void)0, gSaveContext.save.nightFlag)]));
|
||||
#else
|
||||
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(D_8012A330[((void)0, gSaveContext.save.nightFlag)]));
|
||||
#endif
|
||||
|
||||
if (spB0 == 1) {
|
||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue