diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2023-03-24 14:38:04 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-24 14:38:04 -0300 |
| commit | 147e4fcedca332070ca15dbc1db358ce2d42972c (patch) | |
| tree | 30577817a17f58de61a3679cb404fa58e922b750 /src/code/z_scene.c | |
| parent | f3d2c56d1deed7194c77909ee41ed5b8ef3ef8a2 (diff) | |
THA docs (#1177)
* THA docs
Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
* format
* namefixer
* yada
* remove zero pad comment
* Update include/z64.h
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
* Update include/thga.h
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
* namefixer
* bss
* namefixer
---------
Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Diffstat (limited to 'src/code/z_scene.c')
| -rw-r--r-- | src/code/z_scene.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/z_scene.c b/src/code/z_scene.c index 13d93c515..1db125af2 100644 --- a/src/code/z_scene.c +++ b/src/code/z_scene.c @@ -48,7 +48,7 @@ void Object_InitBank(GameState* gameState, ObjectContext* objectCtx) { for (i = 0; i < OBJECT_EXCHANGE_BANK_MAX; i++) { objectCtx->status[i].id = 0; } // clang-format on - objectCtx->spaceStart = objectCtx->status[0].segment = THA_AllocEndAlign16(&gameState->heap, spaceSize); + objectCtx->spaceStart = objectCtx->status[0].segment = THA_AllocTailAlign16(&gameState->heap, spaceSize); objectCtx->spaceEnd = (void*)((u32)objectCtx->spaceStart + spaceSize); objectCtx->mainKeepIndex = Object_Spawn(objectCtx, GAMEPLAY_KEEP); @@ -357,7 +357,7 @@ void Scene_LoadAreaTextures(PlayState* play, s32 fileIndex) { size_t size = sceneTextureFiles[fileIndex].vromEnd - vromStart; if (size != 0) { - play->roomCtx.unk74 = THA_AllocEndAlign16(&play->state.heap, size); + play->roomCtx.unk74 = THA_AllocTailAlign16(&play->state.heap, size); DmaMgr_SendRequest0(play->roomCtx.unk74, vromStart, size); } } |
