mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-16 21:05:12 +00:00
Fix misc 14 (#1279)
* Remove fake temp in `BossDodongo_DrawEffects` * `OS_WRITE` for `__osSpRawStartDma` `direction` * remove outdated comment * fixup osRecvMesg * make sShopkeeperStores static * `PHYSICAL_TO_VIRTUAL(gSegments[0])` -> `SEGMENTED_TO_VIRTUAL(NULL)` (mimics `CollisionHeader_SegmentedToVirtual`) * Run formatter * Remove assets from include path in suggested vscode properties * Fix `osCreateMesgQueue` getting `OS_MESG_BLOCK` as `count` instead of `1`
This commit is contained in:
parent
93a6a1eb9a
commit
0832b5af68
11 changed files with 29 additions and 32 deletions
|
@ -3822,7 +3822,7 @@ u32 SurfaceType_GetData(CollisionContext* colCtx, CollisionPoly* poly, s32 bgId,
|
|||
return 0;
|
||||
}
|
||||
surfaceTypes = colHeader->surfaceTypeList;
|
||||
if (surfaceTypes == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (surfaceTypes == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return 0;
|
||||
}
|
||||
return surfaceTypes[poly->type].data[dataIdx];
|
||||
|
@ -3865,11 +3865,11 @@ u16 SurfaceType_GetCameraSType(CollisionContext* colCtx, CollisionPoly* poly, s3
|
|||
return 0;
|
||||
}
|
||||
camData = colHeader->cameraDataList;
|
||||
if (camData == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (camData == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return 0;
|
||||
}
|
||||
surfaceTypes = colHeader->surfaceTypeList;
|
||||
if (surfaceTypes == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (surfaceTypes == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return 0;
|
||||
}
|
||||
return func_80041A4C(colCtx, SurfaceType_GetCamDataIndex(colCtx, poly, bgId), bgId);
|
||||
|
@ -3887,7 +3887,7 @@ u16 func_80041B24(CollisionContext* colCtx, u32 camId, s32 bgId) {
|
|||
}
|
||||
|
||||
camData = colHeader->cameraDataList;
|
||||
if (camData == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (camData == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return 0;
|
||||
}
|
||||
return camData[camId].numCameras;
|
||||
|
@ -3905,11 +3905,11 @@ u16 SurfaceType_GetNumCameras(CollisionContext* colCtx, CollisionPoly* poly, s32
|
|||
return 0;
|
||||
}
|
||||
camData = colHeader->cameraDataList;
|
||||
if (camData == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (camData == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return 0;
|
||||
}
|
||||
surfaceTypes = colHeader->surfaceTypeList;
|
||||
if (surfaceTypes == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (surfaceTypes == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return 0;
|
||||
}
|
||||
return func_80041B24(colCtx, SurfaceType_GetCamDataIndex(colCtx, poly, bgId), bgId);
|
||||
|
@ -3926,7 +3926,7 @@ Vec3s* func_80041C10(CollisionContext* colCtx, s32 camId, s32 bgId) {
|
|||
return NULL;
|
||||
}
|
||||
cameraDataList = colHeader->cameraDataList;
|
||||
if (cameraDataList == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (cameraDataList == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return NULL;
|
||||
}
|
||||
return (Vec3s*)SEGMENTED_TO_VIRTUAL(cameraDataList[camId].camPosData);
|
||||
|
@ -3944,11 +3944,11 @@ Vec3s* SurfaceType_GetCamPosData(CollisionContext* colCtx, CollisionPoly* poly,
|
|||
return NULL;
|
||||
}
|
||||
camData = colHeader->cameraDataList;
|
||||
if (camData == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (camData == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return NULL;
|
||||
}
|
||||
surfaceTypes = colHeader->surfaceTypeList;
|
||||
if (surfaceTypes == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (surfaceTypes == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return NULL;
|
||||
}
|
||||
return func_80041C10(colCtx, SurfaceType_GetCamDataIndex(colCtx, poly, bgId), bgId);
|
||||
|
@ -4195,7 +4195,7 @@ s32 WaterBox_GetSurfaceImpl(PlayState* play, CollisionContext* colCtx, f32 x, f3
|
|||
u32 room;
|
||||
WaterBox* curWaterBox;
|
||||
|
||||
if (colHeader->numWaterBoxes == 0 || colHeader->waterBoxes == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (colHeader->numWaterBoxes == 0 || colHeader->waterBoxes == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -4231,7 +4231,7 @@ s32 WaterBox_GetSurface2(PlayState* play, CollisionContext* colCtx, Vec3f* pos,
|
|||
WaterBox* waterBox;
|
||||
WaterBox* waterBoxList = colHeader->waterBoxes; // unused, needed for matching
|
||||
|
||||
if (colHeader->numWaterBoxes == 0 || colHeader->waterBoxes == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (colHeader->numWaterBoxes == 0 || colHeader->waterBoxes == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
*outWaterBox = NULL;
|
||||
return -1;
|
||||
}
|
||||
|
@ -4278,7 +4278,7 @@ u16 WaterBox_GetCameraSType(CollisionContext* colCtx, WaterBox* waterBox) {
|
|||
s32 camId = WaterBox_GetCamDataIndex(colCtx, waterBox);
|
||||
CamData* camData = colCtx->colHeader->cameraDataList;
|
||||
|
||||
if (camData == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (camData == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -4305,7 +4305,7 @@ s32 func_800425B0(PlayState* play, CollisionContext* colCtx, f32 x, f32 z, f32*
|
|||
u32 room;
|
||||
WaterBox* curWaterBox;
|
||||
|
||||
if (colHeader->numWaterBoxes == 0 || colHeader->waterBoxes == PHYSICAL_TO_VIRTUAL(gSegments[0])) {
|
||||
if (colHeader->numWaterBoxes == 0 || colHeader->waterBoxes == SEGMENTED_TO_VIRTUAL(NULL)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue