2020-10-03 15:22:44 +00:00
|
|
|
|
#include "global.h"
|
|
|
|
|
#include "vt.h"
|
2021-01-25 00:36:40 +00:00
|
|
|
|
#include "objects/gameplay_keep/gameplay_keep.h"
|
2021-06-15 17:29:10 +00:00
|
|
|
|
#include "textures/parameter_static/parameter_static.h"
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-05-01 15:09:20 +00:00
|
|
|
|
MapData* gMapData;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-05-01 15:09:20 +00:00
|
|
|
|
s16 sPlayerInitialPosX = 0;
|
|
|
|
|
s16 sPlayerInitialPosZ = 0;
|
|
|
|
|
s16 sPlayerInitialDirection = 0;
|
|
|
|
|
s16 sEntranceIconMapIndex = 0;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-05-01 15:09:20 +00:00
|
|
|
|
void Map_SavePlayerInitialInfo(GlobalContext* globalCtx) {
|
2021-08-31 10:22:03 +00:00
|
|
|
|
Player* player = GET_PLAYER(globalCtx);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-01-18 21:04:04 +00:00
|
|
|
|
sPlayerInitialPosX = player->actor.world.pos.x;
|
|
|
|
|
sPlayerInitialPosZ = player->actor.world.pos.z;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
sPlayerInitialDirection = (s16)((0x7FFF - player->actor.shape.rot.y) / 0x400);
|
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-05-01 15:09:20 +00:00
|
|
|
|
void Map_SetPaletteData(GlobalContext* globalCtx, s16 room) {
|
|
|
|
|
s32 mapIndex = gSaveContext.mapIndex;
|
|
|
|
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
2021-05-02 23:15:16 +00:00
|
|
|
|
s16 paletteIndex = gMapData->roomPalette[mapIndex][room];
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-05-01 15:09:20 +00:00
|
|
|
|
if (interfaceCtx->mapRoomNum == room) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
interfaceCtx->mapPaletteIndex = paletteIndex;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-05-01 15:09:20 +00:00
|
|
|
|
osSyncPrintf(VT_FGCOL(YELLOW));
|
2021-09-04 13:33:19 +00:00
|
|
|
|
// "PALETE Set"
|
2021-05-02 23:15:16 +00:00
|
|
|
|
osSyncPrintf("PALETEセット 【 i=%x : room=%x 】Room_Inf[%d][4]=%x ( map_palete_no = %d )\n", paletteIndex,
|
|
|
|
|
room, mapIndex, gSaveContext.sceneFlags[mapIndex].rooms, interfaceCtx->mapPaletteIndex);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
osSyncPrintf(VT_RST);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-05-02 23:15:16 +00:00
|
|
|
|
interfaceCtx->mapPalette[paletteIndex * 2] = 2;
|
|
|
|
|
interfaceCtx->mapPalette[paletteIndex * 2 + 1] = 0xBF;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-05-01 15:09:20 +00:00
|
|
|
|
void Map_SetFloorPalettesData(GlobalContext* globalCtx, s16 floor) {
|
|
|
|
|
s32 mapIndex = gSaveContext.mapIndex;
|
|
|
|
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
|
|
|
|
s16 room;
|
|
|
|
|
s16 i;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-05-01 15:09:20 +00:00
|
|
|
|
for (i = 0; i < 16; i++) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
interfaceCtx->mapPalette[i] = 0;
|
|
|
|
|
interfaceCtx->mapPalette[i + 16] = 0;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-12-03 21:55:01 +00:00
|
|
|
|
if (CHECK_DUNGEON_ITEM(DUNGEON_MAP, mapIndex)) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
interfaceCtx->mapPalette[30] = 0;
|
|
|
|
|
interfaceCtx->mapPalette[31] = 1;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch (globalCtx->sceneNum) {
|
|
|
|
|
case SCENE_YDAN:
|
|
|
|
|
case SCENE_DDAN:
|
|
|
|
|
case SCENE_BDAN:
|
|
|
|
|
case SCENE_BMORI1:
|
|
|
|
|
case SCENE_HIDAN:
|
|
|
|
|
case SCENE_MIZUSIN:
|
|
|
|
|
case SCENE_JYASINZOU:
|
|
|
|
|
case SCENE_HAKADAN:
|
|
|
|
|
case SCENE_HAKADANCH:
|
|
|
|
|
case SCENE_ICE_DOUKUTO:
|
|
|
|
|
case SCENE_YDAN_BOSS:
|
|
|
|
|
case SCENE_DDAN_BOSS:
|
|
|
|
|
case SCENE_BDAN_BOSS:
|
|
|
|
|
case SCENE_MORIBOSSROOM:
|
|
|
|
|
case SCENE_FIRE_BS:
|
|
|
|
|
case SCENE_MIZUSIN_BS:
|
|
|
|
|
case SCENE_JYASINBOSS:
|
|
|
|
|
case SCENE_HAKADAN_BS:
|
|
|
|
|
for (i = 0; i < gMapData->maxPaletteCount[mapIndex]; i++) {
|
|
|
|
|
room = gMapData->paletteRoom[mapIndex][floor][i];
|
|
|
|
|
if ((room != 0xFF) && (gSaveContext.sceneFlags[mapIndex].rooms & gBitFlags[room])) {
|
|
|
|
|
Map_SetPaletteData(globalCtx, room);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Map_InitData(GlobalContext* globalCtx, s16 room) {
|
|
|
|
|
s32 mapIndex = gSaveContext.mapIndex;
|
|
|
|
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
|
|
|
|
s16 extendedMapIndex;
|
|
|
|
|
|
|
|
|
|
switch (globalCtx->sceneNum) {
|
|
|
|
|
case SCENE_SPOT00:
|
|
|
|
|
case SCENE_SPOT01:
|
|
|
|
|
case SCENE_SPOT02:
|
|
|
|
|
case SCENE_SPOT03:
|
|
|
|
|
case SCENE_SPOT04:
|
|
|
|
|
case SCENE_SPOT05:
|
|
|
|
|
case SCENE_SPOT06:
|
|
|
|
|
case SCENE_SPOT07:
|
|
|
|
|
case SCENE_SPOT08:
|
|
|
|
|
case SCENE_SPOT09:
|
|
|
|
|
case SCENE_SPOT10:
|
|
|
|
|
case SCENE_SPOT11:
|
|
|
|
|
case SCENE_SPOT12:
|
|
|
|
|
case SCENE_SPOT13:
|
|
|
|
|
case SCENE_SPOT15:
|
|
|
|
|
case SCENE_SPOT16:
|
|
|
|
|
case SCENE_SPOT17:
|
|
|
|
|
case SCENE_SPOT18:
|
|
|
|
|
case SCENE_SPOT20:
|
|
|
|
|
case SCENE_GANON_TOU:
|
|
|
|
|
extendedMapIndex = mapIndex;
|
|
|
|
|
if (globalCtx->sceneNum == SCENE_SPOT02) {
|
|
|
|
|
if (CHECK_QUEST_ITEM(QUEST_SONG_NOCTURNE)) {
|
|
|
|
|
extendedMapIndex = 0x14;
|
|
|
|
|
}
|
|
|
|
|
} else if (globalCtx->sceneNum == SCENE_SPOT06) {
|
|
|
|
|
if ((LINK_AGE_IN_YEARS == YEARS_ADULT) && !CHECK_QUEST_ITEM(QUEST_MEDALLION_WATER)) {
|
|
|
|
|
extendedMapIndex = 0x15;
|
|
|
|
|
}
|
|
|
|
|
} else if (globalCtx->sceneNum == SCENE_SPOT09) {
|
|
|
|
|
if ((LINK_AGE_IN_YEARS == YEARS_ADULT) && !((gSaveContext.eventChkInf[9] & 0xF) == 0xF)) {
|
|
|
|
|
extendedMapIndex = 0x16;
|
|
|
|
|
}
|
|
|
|
|
} else if (globalCtx->sceneNum == SCENE_SPOT12) {
|
|
|
|
|
if ((gSaveContext.eventChkInf[9] & 0xF) == 0xF) {
|
|
|
|
|
extendedMapIndex = 0x17;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
osSyncPrintf(VT_FGCOL(BLUE));
|
|
|
|
|
osSyncPrintf("KKK=%d\n", extendedMapIndex);
|
|
|
|
|
osSyncPrintf(VT_RST);
|
|
|
|
|
sEntranceIconMapIndex = extendedMapIndex;
|
|
|
|
|
DmaMgr_SendRequest1(interfaceCtx->mapSegment,
|
|
|
|
|
(u32)_map_grand_staticSegmentRomStart + gMapData->owMinimapTexOffset[extendedMapIndex],
|
|
|
|
|
gMapData->owMinimapTexSize[mapIndex], "../z_map_exp.c", 309);
|
|
|
|
|
interfaceCtx->unk_258 = mapIndex;
|
|
|
|
|
break;
|
|
|
|
|
case SCENE_YDAN:
|
|
|
|
|
case SCENE_DDAN:
|
|
|
|
|
case SCENE_BDAN:
|
|
|
|
|
case SCENE_BMORI1:
|
|
|
|
|
case SCENE_HIDAN:
|
|
|
|
|
case SCENE_MIZUSIN:
|
|
|
|
|
case SCENE_JYASINZOU:
|
|
|
|
|
case SCENE_HAKADAN:
|
|
|
|
|
case SCENE_HAKADANCH:
|
|
|
|
|
case SCENE_ICE_DOUKUTO:
|
|
|
|
|
case SCENE_YDAN_BOSS:
|
|
|
|
|
case SCENE_DDAN_BOSS:
|
|
|
|
|
case SCENE_BDAN_BOSS:
|
|
|
|
|
case SCENE_MORIBOSSROOM:
|
|
|
|
|
case SCENE_FIRE_BS:
|
|
|
|
|
case SCENE_MIZUSIN_BS:
|
|
|
|
|
case SCENE_JYASINBOSS:
|
|
|
|
|
case SCENE_HAKADAN_BS:
|
|
|
|
|
osSyncPrintf(VT_FGCOL(YELLOW));
|
2021-09-04 13:33:19 +00:00
|
|
|
|
// "Deku Tree Dungeon MAP Texture DMA"
|
2020-05-01 15:09:20 +00:00
|
|
|
|
osSyncPrintf("デクの樹ダンジョンMAP テクスチャDMA(%x) scene_id_offset=%d VREG(30)=%d\n", room,
|
|
|
|
|
mapIndex, VREG(30));
|
|
|
|
|
osSyncPrintf(VT_RST);
|
|
|
|
|
DmaMgr_SendRequest1(globalCtx->interfaceCtx.mapSegment,
|
|
|
|
|
(u32)_map_i_staticSegmentRomStart +
|
|
|
|
|
((gMapData->dgnMinimapTexIndexOffset[mapIndex] + room) * 0xFF0),
|
|
|
|
|
0xFF0, "../z_map_exp.c", 346);
|
|
|
|
|
R_COMPASS_OFFSET_X = gMapData->roomCompassOffsetX[mapIndex][room];
|
|
|
|
|
R_COMPASS_OFFSET_Y = gMapData->roomCompassOffsetY[mapIndex][room];
|
|
|
|
|
Map_SetFloorPalettesData(globalCtx, VREG(30));
|
2021-09-04 13:33:19 +00:00
|
|
|
|
osSyncPrintf("MAP 各階ONチェック\n"); // "MAP Individual Floor ON Check"
|
2020-05-01 15:09:20 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Map_InitRoomData(GlobalContext* globalCtx, s16 room) {
|
|
|
|
|
s32 mapIndex = gSaveContext.mapIndex;
|
|
|
|
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
|
|
|
|
|
|
|
|
|
osSyncPrintf("*******\n*******\nroom_no=%d (%d)(%d)\n*******\n*******\n", room,
|
|
|
|
|
mapIndex, globalCtx->sceneNum);
|
|
|
|
|
|
|
|
|
|
if (room >= 0) {
|
|
|
|
|
switch (globalCtx->sceneNum) {
|
|
|
|
|
case SCENE_YDAN:
|
|
|
|
|
case SCENE_DDAN:
|
|
|
|
|
case SCENE_BDAN:
|
|
|
|
|
case SCENE_BMORI1:
|
|
|
|
|
case SCENE_HIDAN:
|
|
|
|
|
case SCENE_MIZUSIN:
|
|
|
|
|
case SCENE_JYASINZOU:
|
|
|
|
|
case SCENE_HAKADAN:
|
|
|
|
|
case SCENE_HAKADANCH:
|
|
|
|
|
case SCENE_ICE_DOUKUTO:
|
|
|
|
|
case SCENE_YDAN_BOSS:
|
|
|
|
|
case SCENE_DDAN_BOSS:
|
|
|
|
|
case SCENE_BDAN_BOSS:
|
|
|
|
|
case SCENE_MORIBOSSROOM:
|
|
|
|
|
case SCENE_FIRE_BS:
|
|
|
|
|
case SCENE_MIZUSIN_BS:
|
|
|
|
|
case SCENE_JYASINBOSS:
|
|
|
|
|
case SCENE_HAKADAN_BS:
|
|
|
|
|
gSaveContext.sceneFlags[mapIndex].rooms |= gBitFlags[room];
|
|
|
|
|
osSyncPrintf("ROOM_INF=%d\n", gSaveContext.sceneFlags[mapIndex].rooms);
|
|
|
|
|
interfaceCtx->mapRoomNum = room;
|
|
|
|
|
interfaceCtx->unk_25A = mapIndex;
|
|
|
|
|
Map_SetPaletteData(globalCtx, room);
|
|
|
|
|
osSyncPrintf(VT_FGCOL(YELLOW));
|
|
|
|
|
osSyncPrintf("部屋部屋=%d\n", room); // "Room Room = %d"
|
|
|
|
|
osSyncPrintf(VT_RST);
|
|
|
|
|
Map_InitData(globalCtx, room);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
interfaceCtx->mapRoomNum = 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-20 16:51:35 +00:00
|
|
|
|
if (gSaveContext.sunsSongState != SUNSSONG_SPEED_TIME) {
|
|
|
|
|
gSaveContext.sunsSongState = SUNSSONG_INACTIVE;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Map_Destroy(GlobalContext* globalCtx) {
|
|
|
|
|
MapMark_ClearPointers(globalCtx);
|
|
|
|
|
gMapData = NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Map_Init(GlobalContext* globalCtx) {
|
|
|
|
|
s32 mapIndex = gSaveContext.mapIndex;
|
|
|
|
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
|
|
|
|
|
|
|
|
|
gMapData = &gMapDataTable;
|
|
|
|
|
|
|
|
|
|
interfaceCtx->unk_258 = -1;
|
|
|
|
|
interfaceCtx->unk_25A = -1;
|
|
|
|
|
|
2020-05-26 15:39:27 +00:00
|
|
|
|
interfaceCtx->mapSegment = GameState_Alloc(&globalCtx->state, 0x1000, "../z_map_exp.c", 457);
|
2021-09-04 13:33:19 +00:00
|
|
|
|
// "MAP texture initialization scene_data_ID=%d mapSegment=%x"
|
2020-05-01 15:09:20 +00:00
|
|
|
|
osSyncPrintf("\n\n\nMAP テクスチャ初期化 scene_data_ID=%d\nmapSegment=%x\n\n", globalCtx->sceneNum,
|
|
|
|
|
interfaceCtx->mapSegment, globalCtx);
|
2021-04-29 18:39:46 +00:00
|
|
|
|
ASSERT(interfaceCtx->mapSegment != NULL, "parameter->mapSegment != NULL", "../z_map_exp.c", 459);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
|
|
|
|
switch (globalCtx->sceneNum) {
|
|
|
|
|
case SCENE_SPOT00:
|
|
|
|
|
case SCENE_SPOT01:
|
|
|
|
|
case SCENE_SPOT02:
|
|
|
|
|
case SCENE_SPOT03:
|
|
|
|
|
case SCENE_SPOT04:
|
|
|
|
|
case SCENE_SPOT05:
|
|
|
|
|
case SCENE_SPOT06:
|
|
|
|
|
case SCENE_SPOT07:
|
|
|
|
|
case SCENE_SPOT08:
|
|
|
|
|
case SCENE_SPOT09:
|
|
|
|
|
case SCENE_SPOT10:
|
|
|
|
|
case SCENE_SPOT11:
|
|
|
|
|
case SCENE_SPOT12:
|
|
|
|
|
case SCENE_SPOT13:
|
|
|
|
|
case SCENE_SPOT15:
|
|
|
|
|
case SCENE_SPOT16:
|
|
|
|
|
case SCENE_SPOT17:
|
|
|
|
|
case SCENE_SPOT18:
|
|
|
|
|
case SCENE_SPOT20:
|
|
|
|
|
case SCENE_GANON_TOU:
|
|
|
|
|
mapIndex = globalCtx->sceneNum - SCENE_SPOT00;
|
|
|
|
|
R_MAP_INDEX = gSaveContext.mapIndex = mapIndex;
|
|
|
|
|
R_COMPASS_SCALE_X = gMapData->owCompassInfo[mapIndex][0];
|
|
|
|
|
R_COMPASS_SCALE_Y = gMapData->owCompassInfo[mapIndex][1];
|
|
|
|
|
R_COMPASS_OFFSET_X = gMapData->owCompassInfo[mapIndex][2];
|
|
|
|
|
R_COMPASS_OFFSET_Y = gMapData->owCompassInfo[mapIndex][3];
|
|
|
|
|
Map_InitData(globalCtx, mapIndex);
|
|
|
|
|
R_OW_MINIMAP_X = gMapData->owMinimapPosX[mapIndex];
|
|
|
|
|
R_OW_MINIMAP_Y = gMapData->owMinimapPosY[mapIndex];
|
|
|
|
|
break;
|
|
|
|
|
case SCENE_YDAN:
|
|
|
|
|
case SCENE_DDAN:
|
|
|
|
|
case SCENE_BDAN:
|
|
|
|
|
case SCENE_BMORI1:
|
|
|
|
|
case SCENE_HIDAN:
|
|
|
|
|
case SCENE_MIZUSIN:
|
|
|
|
|
case SCENE_JYASINZOU:
|
|
|
|
|
case SCENE_HAKADAN:
|
|
|
|
|
case SCENE_HAKADANCH:
|
|
|
|
|
case SCENE_ICE_DOUKUTO:
|
|
|
|
|
case SCENE_GANON:
|
|
|
|
|
case SCENE_MEN:
|
|
|
|
|
case SCENE_GERUDOWAY:
|
|
|
|
|
case SCENE_GANONTIKA:
|
|
|
|
|
case SCENE_GANON_SONOGO:
|
|
|
|
|
case SCENE_GANONTIKA_SONOGO:
|
|
|
|
|
case SCENE_TAKARAYA:
|
|
|
|
|
case SCENE_YDAN_BOSS:
|
|
|
|
|
case SCENE_DDAN_BOSS:
|
|
|
|
|
case SCENE_BDAN_BOSS:
|
|
|
|
|
case SCENE_MORIBOSSROOM:
|
|
|
|
|
case SCENE_FIRE_BS:
|
|
|
|
|
case SCENE_MIZUSIN_BS:
|
|
|
|
|
case SCENE_JYASINBOSS:
|
|
|
|
|
case SCENE_HAKADAN_BS:
|
|
|
|
|
mapIndex =
|
|
|
|
|
(globalCtx->sceneNum >= SCENE_YDAN_BOSS) ? globalCtx->sceneNum - SCENE_YDAN_BOSS : globalCtx->sceneNum;
|
|
|
|
|
R_MAP_INDEX = gSaveContext.mapIndex = mapIndex;
|
|
|
|
|
if ((globalCtx->sceneNum <= SCENE_ICE_DOUKUTO) || (globalCtx->sceneNum >= SCENE_YDAN_BOSS)) {
|
|
|
|
|
R_COMPASS_SCALE_X = gMapData->dgnCompassInfo[mapIndex][0];
|
|
|
|
|
R_COMPASS_SCALE_Y = gMapData->dgnCompassInfo[mapIndex][1];
|
|
|
|
|
R_COMPASS_OFFSET_X = gMapData->dgnCompassInfo[mapIndex][2];
|
|
|
|
|
R_COMPASS_OFFSET_Y = gMapData->dgnCompassInfo[mapIndex][3];
|
|
|
|
|
R_MAP_TEX_INDEX = R_MAP_TEX_INDEX_BASE = gMapData->dgnMinimapTexIndexBase[mapIndex];
|
|
|
|
|
Map_InitRoomData(globalCtx, globalCtx->roomCtx.curRoom.num);
|
|
|
|
|
MapMark_Init(globalCtx);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Minimap_DrawCompassIcons(GlobalContext* globalCtx) {
|
2020-08-30 16:51:46 +00:00
|
|
|
|
s32 pad;
|
2021-08-31 10:22:03 +00:00
|
|
|
|
Player* player = GET_PLAYER(globalCtx);
|
2020-08-30 16:51:46 +00:00
|
|
|
|
s16 tempX, tempZ;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
|
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_map_exp.c", 565);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
|
|
|
|
if (globalCtx->interfaceCtx.minimapAlpha >= 0xAA) {
|
|
|
|
|
func_80094A14(globalCtx->state.gfxCtx);
|
|
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gSPMatrix(OVERLAY_DISP++, &gMtxClear, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
|
|
|
|
gDPSetCombineLERP(OVERLAY_DISP++, PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, TEXEL0, 0, PRIMITIVE, 0,
|
2020-05-01 15:09:20 +00:00
|
|
|
|
PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, TEXEL0, 0, PRIMITIVE, 0);
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gDPSetEnvColor(OVERLAY_DISP++, 0, 0, 0, 255);
|
|
|
|
|
gDPSetCombineMode(OVERLAY_DISP++, G_CC_PRIMITIVE, G_CC_PRIMITIVE);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
2021-01-18 21:04:04 +00:00
|
|
|
|
tempX = player->actor.world.pos.x;
|
|
|
|
|
tempZ = player->actor.world.pos.z;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
tempX /= R_COMPASS_SCALE_X;
|
|
|
|
|
tempZ /= R_COMPASS_SCALE_Y;
|
|
|
|
|
Matrix_Translate((R_COMPASS_OFFSET_X + tempX) / 10.0f, (R_COMPASS_OFFSET_Y - tempZ) / 10.0f, 0.0f, MTXMODE_NEW);
|
|
|
|
|
Matrix_Scale(0.4f, 0.4f, 0.4f, MTXMODE_APPLY);
|
|
|
|
|
Matrix_RotateX(-1.6f, MTXMODE_APPLY);
|
2020-08-30 16:51:46 +00:00
|
|
|
|
tempX = (0x7FFF - player->actor.shape.rot.y) / 0x400;
|
|
|
|
|
Matrix_RotateY(tempX / 10.0f, MTXMODE_APPLY);
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_map_exp.c", 585),
|
2020-05-01 15:09:20 +00:00
|
|
|
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
|
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 200, 255, 0, 255);
|
2021-01-25 00:36:40 +00:00
|
|
|
|
gSPDisplayList(OVERLAY_DISP++, gCompassArrowDL);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
|
|
|
|
tempX = sPlayerInitialPosX;
|
|
|
|
|
tempZ = sPlayerInitialPosZ;
|
|
|
|
|
tempX /= R_COMPASS_SCALE_X;
|
|
|
|
|
tempZ /= R_COMPASS_SCALE_Y;
|
|
|
|
|
Matrix_Translate((R_COMPASS_OFFSET_X + tempX) / 10.0f, (R_COMPASS_OFFSET_Y - tempZ) / 10.0f, 0.0f, MTXMODE_NEW);
|
|
|
|
|
Matrix_Scale(VREG(9) / 100.0f, VREG(9) / 100.0f, VREG(9) / 100.0f, MTXMODE_APPLY);
|
|
|
|
|
Matrix_RotateX(VREG(52) / 10.0f, MTXMODE_APPLY);
|
|
|
|
|
Matrix_RotateY(sPlayerInitialDirection / 10.0f, MTXMODE_APPLY);
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gSPMatrix(OVERLAY_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_map_exp.c", 603),
|
2020-05-01 15:09:20 +00:00
|
|
|
|
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
|
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0xFF, 200, 0, 0, 255);
|
2021-01-25 00:36:40 +00:00
|
|
|
|
gSPDisplayList(OVERLAY_DISP++, gCompassArrowDL);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
|
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_map_exp.c", 607);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Minimap_Draw(GlobalContext* globalCtx) {
|
|
|
|
|
s32 pad[2];
|
|
|
|
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
|
|
|
|
s32 mapIndex = gSaveContext.mapIndex;
|
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
|
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_map_exp.c", 626);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
|
|
|
|
if (globalCtx->pauseCtx.state < 4) {
|
|
|
|
|
switch (globalCtx->sceneNum) {
|
|
|
|
|
case SCENE_YDAN:
|
|
|
|
|
case SCENE_DDAN:
|
|
|
|
|
case SCENE_BDAN:
|
|
|
|
|
case SCENE_BMORI1:
|
|
|
|
|
case SCENE_HIDAN:
|
|
|
|
|
case SCENE_MIZUSIN:
|
|
|
|
|
case SCENE_JYASINZOU:
|
|
|
|
|
case SCENE_HAKADAN:
|
|
|
|
|
case SCENE_HAKADANCH:
|
|
|
|
|
case SCENE_ICE_DOUKUTO:
|
2021-06-15 17:29:10 +00:00
|
|
|
|
if (!R_MINIMAP_DISABLED) {
|
2020-05-01 15:09:20 +00:00
|
|
|
|
func_80094520(globalCtx->state.gfxCtx);
|
2020-11-19 21:49:08 +00:00
|
|
|
|
gDPSetCombineLERP(OVERLAY_DISP++, 1, 0, PRIMITIVE, 0, TEXEL0, 0, PRIMITIVE, 0, 1, 0, PRIMITIVE, 0,
|
|
|
|
|
TEXEL0, 0, PRIMITIVE, 0);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
2020-12-03 21:55:01 +00:00
|
|
|
|
if (CHECK_DUNGEON_ITEM(DUNGEON_MAP, mapIndex)) {
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 100, 255, 255, interfaceCtx->minimapAlpha);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gDPLoadTextureBlock_4b(OVERLAY_DISP++, interfaceCtx->mapSegment, G_IM_FMT_I, 96, 85, 0,
|
2020-05-01 15:09:20 +00:00
|
|
|
|
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK,
|
|
|
|
|
G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gSPTextureRectangle(OVERLAY_DISP++, R_DGN_MINIMAP_X << 2, R_DGN_MINIMAP_Y << 2,
|
2020-05-01 15:09:20 +00:00
|
|
|
|
(R_DGN_MINIMAP_X + 96) << 2, (R_DGN_MINIMAP_Y + 85) << 2, G_TX_RENDERTILE,
|
2021-06-15 17:29:10 +00:00
|
|
|
|
0, 0, 1 << 10, 1 << 10);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-12-03 21:55:01 +00:00
|
|
|
|
if (CHECK_DUNGEON_ITEM(DUNGEON_COMPASS, mapIndex)) {
|
2020-05-01 15:09:20 +00:00
|
|
|
|
Minimap_DrawCompassIcons(globalCtx); // Draw icons for the player spawn and current position
|
|
|
|
|
func_80094520(globalCtx->state.gfxCtx);
|
2021-05-02 23:15:16 +00:00
|
|
|
|
MapMark_Draw(globalCtx);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-03 15:22:44 +00:00
|
|
|
|
if (CHECK_BTN_ALL(globalCtx->state.input[0].press.button, BTN_L) && !Gameplay_InCsMode(globalCtx)) {
|
2020-05-01 15:09:20 +00:00
|
|
|
|
osSyncPrintf("Game_play_demo_mode_check=%d\n", Gameplay_InCsMode(globalCtx));
|
|
|
|
|
// clang-format off
|
2021-06-15 17:29:10 +00:00
|
|
|
|
if (!R_MINIMAP_DISABLED) { Audio_PlaySoundGeneral(NA_SE_SY_CAMERA_ZOOM_UP, &D_801333D4, 4,
|
|
|
|
|
&D_801333E0, &D_801333E0, &D_801333E8); }
|
2020-05-01 15:09:20 +00:00
|
|
|
|
else { Audio_PlaySoundGeneral(NA_SE_SY_CAMERA_ZOOM_DOWN, &D_801333D4, 4,
|
|
|
|
|
&D_801333E0, &D_801333E0, &D_801333E8); }
|
|
|
|
|
// clang-format on
|
2021-06-15 17:29:10 +00:00
|
|
|
|
R_MINIMAP_DISABLED ^= 1;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case SCENE_SPOT00:
|
|
|
|
|
case SCENE_SPOT01:
|
|
|
|
|
case SCENE_SPOT02:
|
|
|
|
|
case SCENE_SPOT03:
|
|
|
|
|
case SCENE_SPOT04:
|
|
|
|
|
case SCENE_SPOT05:
|
|
|
|
|
case SCENE_SPOT06:
|
|
|
|
|
case SCENE_SPOT07:
|
|
|
|
|
case SCENE_SPOT08:
|
|
|
|
|
case SCENE_SPOT09:
|
|
|
|
|
case SCENE_SPOT10:
|
|
|
|
|
case SCENE_SPOT11:
|
|
|
|
|
case SCENE_SPOT12:
|
|
|
|
|
case SCENE_SPOT13:
|
|
|
|
|
case SCENE_SPOT15:
|
|
|
|
|
case SCENE_SPOT16:
|
|
|
|
|
case SCENE_SPOT17:
|
|
|
|
|
case SCENE_SPOT18:
|
|
|
|
|
case SCENE_SPOT20:
|
|
|
|
|
case SCENE_GANON_TOU:
|
2021-06-15 17:29:10 +00:00
|
|
|
|
if (!R_MINIMAP_DISABLED) {
|
2020-05-01 15:09:20 +00:00
|
|
|
|
func_80094520(globalCtx->state.gfxCtx);
|
|
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gDPSetCombineMode(OVERLAY_DISP++, G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM);
|
2020-11-19 21:49:08 +00:00
|
|
|
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, R_MINIMAP_COLOR(0), R_MINIMAP_COLOR(1), R_MINIMAP_COLOR(2),
|
|
|
|
|
interfaceCtx->minimapAlpha);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gDPLoadTextureBlock_4b(OVERLAY_DISP++, interfaceCtx->mapSegment, G_IM_FMT_IA,
|
2020-05-01 15:09:20 +00:00
|
|
|
|
gMapData->owMinimapWidth[mapIndex], gMapData->owMinimapHeight[mapIndex], 0,
|
|
|
|
|
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK,
|
|
|
|
|
G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gSPTextureRectangle(OVERLAY_DISP++, R_OW_MINIMAP_X << 2, R_OW_MINIMAP_Y << 2,
|
2020-05-01 15:09:20 +00:00
|
|
|
|
(R_OW_MINIMAP_X + gMapData->owMinimapWidth[mapIndex]) << 2,
|
|
|
|
|
(R_OW_MINIMAP_Y + gMapData->owMinimapHeight[mapIndex]) << 2, G_TX_RENDERTILE, 0,
|
2021-06-15 17:29:10 +00:00
|
|
|
|
0, 1 << 10, 1 << 10);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
|
|
|
|
if (((globalCtx->sceneNum != SCENE_SPOT01) && (globalCtx->sceneNum != SCENE_SPOT04) &&
|
|
|
|
|
(globalCtx->sceneNum != SCENE_SPOT08)) ||
|
|
|
|
|
(LINK_AGE_IN_YEARS != YEARS_ADULT)) {
|
|
|
|
|
if ((gMapData->owEntranceFlag[sEntranceIconMapIndex] == 0xFFFF) ||
|
|
|
|
|
((gMapData->owEntranceFlag[sEntranceIconMapIndex] != 0xFFFF) &&
|
|
|
|
|
(gSaveContext.infTable[26] & gBitFlags[gMapData->owEntranceFlag[mapIndex]]))) {
|
|
|
|
|
|
2021-06-15 17:29:10 +00:00
|
|
|
|
gDPLoadTextureBlock(OVERLAY_DISP++, gMapDungeonEntranceIconTex, G_IM_FMT_RGBA, G_IM_SIZ_16b,
|
|
|
|
|
8, 8, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP,
|
|
|
|
|
G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
|
gSPTextureRectangle(OVERLAY_DISP++,
|
2020-05-01 15:09:20 +00:00
|
|
|
|
gMapData->owEntranceIconPosX[sEntranceIconMapIndex] << 2,
|
|
|
|
|
gMapData->owEntranceIconPosY[sEntranceIconMapIndex] << 2,
|
|
|
|
|
(gMapData->owEntranceIconPosX[sEntranceIconMapIndex] + 8) << 2,
|
|
|
|
|
(gMapData->owEntranceIconPosY[sEntranceIconMapIndex] + 8) << 2,
|
2021-06-15 17:29:10 +00:00
|
|
|
|
G_TX_RENDERTILE, 0, 0, 1 << 10, 1 << 10);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((globalCtx->sceneNum == SCENE_SPOT08) && (gSaveContext.infTable[26] & gBitFlags[9])) {
|
2021-06-15 17:29:10 +00:00
|
|
|
|
gDPLoadTextureBlock(OVERLAY_DISP++, gMapDungeonEntranceIconTex, G_IM_FMT_RGBA, G_IM_SIZ_16b, 8,
|
|
|
|
|
8, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK,
|
2020-05-01 15:09:20 +00:00
|
|
|
|
G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
|
|
|
|
2022-02-20 13:22:29 +00:00
|
|
|
|
gSPTextureRectangle(OVERLAY_DISP++, 270 << 2, 154 << 2, 278 << 2, 162 << 2, G_TX_RENDERTILE, 0,
|
|
|
|
|
0, 1 << 10, 1 << 10);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Minimap_DrawCompassIcons(globalCtx); // Draw icons for the player spawn and current position
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-03 15:22:44 +00:00
|
|
|
|
if (CHECK_BTN_ALL(globalCtx->state.input[0].press.button, BTN_L) && !Gameplay_InCsMode(globalCtx)) {
|
2020-05-01 15:09:20 +00:00
|
|
|
|
// clang-format off
|
2021-06-15 17:29:10 +00:00
|
|
|
|
if (!R_MINIMAP_DISABLED) { Audio_PlaySoundGeneral(NA_SE_SY_CAMERA_ZOOM_UP, &D_801333D4, 4,
|
|
|
|
|
&D_801333E0, &D_801333E0, &D_801333E8); }
|
2020-05-01 15:09:20 +00:00
|
|
|
|
else { Audio_PlaySoundGeneral(NA_SE_SY_CAMERA_ZOOM_DOWN, &D_801333D4, 4,
|
|
|
|
|
&D_801333E0, &D_801333E0, &D_801333E8); }
|
|
|
|
|
// clang-format on
|
2021-06-15 17:29:10 +00:00
|
|
|
|
R_MINIMAP_DISABLED ^= 1;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
|
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_map_exp.c", 782);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s16 Map_GetFloorTextIndexOffset(s32 mapIndex, s32 floor) {
|
|
|
|
|
return gMapData->floorTexIndexOffset[mapIndex][floor];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Map_Update(GlobalContext* globalCtx) {
|
2020-08-23 21:50:30 +00:00
|
|
|
|
static s16 sLastRoomNum = 99;
|
2021-08-31 10:22:03 +00:00
|
|
|
|
Player* player = GET_PLAYER(globalCtx);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
s32 mapIndex = gSaveContext.mapIndex;
|
|
|
|
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
|
|
|
|
s16 floor;
|
|
|
|
|
s16 i;
|
|
|
|
|
|
2021-05-02 23:15:16 +00:00
|
|
|
|
if ((globalCtx->pauseCtx.state == 0) && (globalCtx->pauseCtx.debugState == 0)) {
|
2020-05-01 15:09:20 +00:00
|
|
|
|
switch (globalCtx->sceneNum) {
|
|
|
|
|
case SCENE_YDAN:
|
|
|
|
|
case SCENE_DDAN:
|
|
|
|
|
case SCENE_BDAN:
|
|
|
|
|
case SCENE_BMORI1:
|
|
|
|
|
case SCENE_HIDAN:
|
|
|
|
|
case SCENE_MIZUSIN:
|
|
|
|
|
case SCENE_JYASINZOU:
|
|
|
|
|
case SCENE_HAKADAN:
|
|
|
|
|
case SCENE_HAKADANCH:
|
|
|
|
|
case SCENE_ICE_DOUKUTO:
|
2021-05-02 23:15:16 +00:00
|
|
|
|
interfaceCtx->mapPalette[30] = 0;
|
2020-12-03 21:55:01 +00:00
|
|
|
|
if (CHECK_DUNGEON_ITEM(DUNGEON_MAP, mapIndex)) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
interfaceCtx->mapPalette[31] = 1;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
} else {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
interfaceCtx->mapPalette[31] = 0;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (floor = 0; floor < 8; floor++) {
|
2021-01-18 21:04:04 +00:00
|
|
|
|
if (player->actor.world.pos.y > gMapData->floorCoordY[mapIndex][floor]) {
|
2020-05-01 15:09:20 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-14 00:49:40 +00:00
|
|
|
|
gSaveContext.sceneFlags[mapIndex].floors |= gBitFlags[floor];
|
|
|
|
|
VREG(30) = floor;
|
|
|
|
|
if (R_MAP_TEX_INDEX != (R_MAP_TEX_INDEX_BASE + Map_GetFloorTextIndexOffset(mapIndex, floor))) {
|
|
|
|
|
R_MAP_TEX_INDEX = R_MAP_TEX_INDEX_BASE + Map_GetFloorTextIndexOffset(mapIndex, floor);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
}
|
2021-02-14 00:49:40 +00:00
|
|
|
|
if (1) {} // Appears to be necessary to match
|
2020-05-01 15:09:20 +00:00
|
|
|
|
|
|
|
|
|
if (interfaceCtx->mapRoomNum != sLastRoomNum) {
|
2021-09-04 13:33:19 +00:00
|
|
|
|
// "Current floor = %d Current room = %x Number of rooms = %d"
|
2020-05-01 15:09:20 +00:00
|
|
|
|
osSyncPrintf("現在階=%d 現在部屋=%x 部屋数=%d\n", floor, interfaceCtx->mapRoomNum,
|
|
|
|
|
gMapData->switchEntryCount[mapIndex]);
|
|
|
|
|
sLastRoomNum = interfaceCtx->mapRoomNum;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < gMapData->switchEntryCount[mapIndex]; i++) {
|
|
|
|
|
if ((interfaceCtx->mapRoomNum == gMapData->switchFromRoom[mapIndex][i]) &&
|
|
|
|
|
(floor == gMapData->switchFromFloor[mapIndex][i])) {
|
|
|
|
|
interfaceCtx->mapRoomNum = gMapData->switchToRoom[mapIndex][i];
|
|
|
|
|
osSyncPrintf(VT_FGCOL(YELLOW));
|
2021-09-04 13:33:19 +00:00
|
|
|
|
// "Layer switching = %x"
|
|
|
|
|
osSyncPrintf("階層切替=%x\n", interfaceCtx->mapRoomNum);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
osSyncPrintf(VT_RST);
|
|
|
|
|
Map_InitData(globalCtx, interfaceCtx->mapRoomNum);
|
2021-09-20 16:51:35 +00:00
|
|
|
|
gSaveContext.sunsSongState = SUNSSONG_INACTIVE;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
Map_SavePlayerInitialInfo(globalCtx);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
VREG(10) = interfaceCtx->mapRoomNum;
|
|
|
|
|
break;
|
|
|
|
|
case SCENE_YDAN_BOSS:
|
|
|
|
|
case SCENE_DDAN_BOSS:
|
|
|
|
|
case SCENE_BDAN_BOSS:
|
|
|
|
|
case SCENE_MORIBOSSROOM:
|
|
|
|
|
case SCENE_FIRE_BS:
|
|
|
|
|
case SCENE_MIZUSIN_BS:
|
|
|
|
|
case SCENE_JYASINBOSS:
|
|
|
|
|
case SCENE_HAKADAN_BS:
|
|
|
|
|
VREG(30) = gMapData->bossFloor[globalCtx->sceneNum - SCENE_YDAN_BOSS];
|
|
|
|
|
R_MAP_TEX_INDEX = R_MAP_TEX_INDEX_BASE +
|
|
|
|
|
gMapData->floorTexIndexOffset[globalCtx->sceneNum - SCENE_YDAN_BOSS][VREG(30)];
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|