mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-05 15:34:41 +00:00
Decompile z_map_exp.c (2 non matchings left) (#104)
Also documented the map data table (not decompiled yet however), and added a DungeonItem enum to use with gSaveContext.dungeonItems reads/writes.
This commit is contained in:
parent
9f1c996db5
commit
9f98210488
36 changed files with 894 additions and 1998 deletions
|
@ -2753,11 +2753,10 @@ Actor* Actor_Spawn(ActorContext* actorCtx, GlobalContext* globalCtx, s16 actorId
|
|||
overlayEntry->nbLoaded = 0;
|
||||
}
|
||||
|
||||
actorInit =
|
||||
(ActorInit*)((u32)(overlayEntry->initInfo != NULL
|
||||
? (ActorInit*)((u32)overlayEntry->initInfo - (s32)((u32)overlayEntry->vramStart -
|
||||
(u32)overlayEntry->loadedRamAddr))
|
||||
: NULL));
|
||||
actorInit = (void*)(u32)((overlayEntry->initInfo != NULL)
|
||||
? (void*)((u32)overlayEntry->initInfo -
|
||||
(s32)((u32)overlayEntry->vramStart - (u32)overlayEntry->loadedRamAddr))
|
||||
: NULL);
|
||||
}
|
||||
|
||||
objBankIndex = Object_GetIndex(&globalCtx->objectCtx, actorInit->objectId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue