mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-08 15:30:14 +00:00
Improve PHYSICAL/VIRTUAL macros and match Interface_LoadActionLabel (#371)
This commit is contained in:
parent
b4ac94a8fd
commit
b8da64ee01
12 changed files with 22 additions and 133 deletions
|
@ -107,7 +107,7 @@ void BgMjin_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||
if (thisx->params != 0) {
|
||||
s32 objBankIndex = Object_GetIndex(&globalCtx->objectCtx, sObjectIDs[thisx->params - 1]);
|
||||
if (objBankIndex >= 0) {
|
||||
gSegments[6] = PHYSICAL_TO_VIRTUAL(globalCtx->objectCtx.status[objBankIndex].segment);
|
||||
gSegments[6] = VIRTUAL_TO_PHYSICAL(globalCtx->objectCtx.status[objBankIndex].segment);
|
||||
}
|
||||
gSPSegment(oGfxCtx->polyOpa.p++, 0x08, SEGMENTED_TO_VIRTUAL(&D_06000000));
|
||||
dlist = D_06000330;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue