diff options
| author | Roman971 <32455037+Roman971@users.noreply.github.com> | 2021-01-21 14:48:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-21 08:48:21 -0500 |
| commit | 70a3acf1114b0206608e358780545ec7bbef4f4e (patch) | |
| tree | 1b852b2c82a6474a53dca18eb2defd135ee6bea6 /src | |
| parent | 0e76c84c450ec646c0962133d03588a275f48515 (diff) | |
Match Player_Init (player_actor OK) (#651)
Diffstat (limited to 'src')
| -rw-r--r-- | src/overlays/actors/ovl_player_actor/z_player.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/overlays/actors/ovl_player_actor/z_player.c b/src/overlays/actors/ovl_player_actor/z_player.c index d11c43c2b..b2cfc50a4 100644 --- a/src/overlays/actors/ovl_player_actor/z_player.c +++ b/src/overlays/actors/ovl_player_actor/z_player.c @@ -9084,14 +9084,12 @@ void (*D_80854738[])(GlobalContext* globalCtx, Player* this) = { Vec3f D_80854778 = { 0.0f, 50.0f, 0.0f }; -#ifdef NON_MATCHING -// single regalloc difference void Player_Init(Actor* thisx, GlobalContext* globalCtx2) { Player* this = THIS; GlobalContext* globalCtx = globalCtx2; Scene* scene = globalCtx->loadedScene; + u32 titleFileSize; s32 initMode; - s32 pad; s32 sp50; s32 sp4C; @@ -9146,7 +9144,8 @@ void Player_Init(Actor* thisx, GlobalContext* globalCtx2) { } if ((sp50 == 0) || (sp50 < -1)) { - if ((scene->titleFile.vromStart != scene->titleFile.vromEnd) && gSaveContext.showTitleCard) { + titleFileSize = scene->titleFile.vromEnd - scene->titleFile.vromStart; + if ((titleFileSize != 0) && gSaveContext.showTitleCard) { if ((gSaveContext.sceneSetupIndex < 4) && (gEntranceTable[(0, gSaveContext.entranceIndex) + (0, gSaveContext.sceneSetupIndex)].field & 0x4000) && ((globalCtx->sceneNum != SCENE_DDAN) || (gSaveContext.eventChkInf[11] & 1)) && @@ -9200,9 +9199,6 @@ void Player_Init(Actor* thisx, GlobalContext* globalCtx2) { Map_SavePlayerInitialInfo(globalCtx); MREG(64) = 0; } -#else -#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_player_actor/Player_Init.s") -#endif void func_808471F4(s16* pValue) { s16 step; |
