mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 04:11:36 +00:00
modify fix based on comparison with ps3 logic
This commit is contained in:
parent
f6b03f8769
commit
c5b21af964
1 changed files with 8 additions and 6 deletions
|
|
@ -197,15 +197,17 @@ PPC_FUNC(sub_824EE620)
|
||||||
// This is a constructor for some struct that constructed inside CTownManContext::CTownManContext()
|
// This is a constructor for some struct that constructed inside CTownManContext::CTownManContext()
|
||||||
// and within the calls contained in CTownManBase::ProcMsgSetTownManRetryTimeTable().
|
// and within the calls contained in CTownManBase::ProcMsgSetTownManRetryTimeTable().
|
||||||
//
|
//
|
||||||
// Within the constructor of the CTownManContext, second member of this struct is initialized to -1
|
// Within the constructor of the CTownManContext, the second member of this struct is initialized to -1
|
||||||
// after this call happens inside CTownManContext::CTownManContext at the pretty much the very of that function call.
|
// after this call happens inside CTownManContext::CTownManContext() at pretty much the very of that function call.
|
||||||
//
|
//
|
||||||
// This initialization of the member variable is however not executed when this constructor for the struct
|
// This initialization of the member variable is however not executed when this constructor for the struct
|
||||||
// is called from someplace else in the game's code, as such it remains with unitialized data for that field.
|
// is called from someplace else in the game's code, as such it remains with unitialized data for that field.
|
||||||
//
|
//
|
||||||
// Ensuring that this member variable is initialized to what CTownManContext::CTownManContext sets it to
|
// Ensuring that this member variable is initialized to 0 (which is what the logic within the function at 82B3CD40
|
||||||
// anytime this constructor is called fixes an issue with Tails not disappearing when giving you the camera
|
// seems to try to do but fails (when compared to the PS3 code it seems that there might be something going wrong with the
|
||||||
// after Rooftop Run Act 1.
|
// exit logic of the loop)) anytime this constructor is called fixes an issue with Tails not disappearing when giving you
|
||||||
|
// the camera after Rooftop Run Act 1 (Night). This setting of it to 0 won't break the behaviour created by the call to it
|
||||||
|
// from CTownManContext::CTownManContext() as that itself sets it to -1 later on. It only affects other instance of the call.
|
||||||
//
|
//
|
||||||
// NOTE: ctx.r3.u32 + 0 is also unitialized by this constructor, however both instances of this function being called
|
// NOTE: ctx.r3.u32 + 0 is also unitialized by this constructor, however both instances of this function being called
|
||||||
// initialized the said variable later on before being used.
|
// initialized the said variable later on before being used.
|
||||||
|
|
@ -215,6 +217,6 @@ PPC_FUNC(sub_824EE620)
|
||||||
PPC_FUNC_IMPL(__imp__sub_8297C630);
|
PPC_FUNC_IMPL(__imp__sub_8297C630);
|
||||||
PPC_FUNC(sub_8297C630)
|
PPC_FUNC(sub_8297C630)
|
||||||
{
|
{
|
||||||
PPC_STORE_U32(ctx.r3.u32 + 4, -1);
|
PPC_STORE_U32(ctx.r3.u32 + 4, 0);
|
||||||
__imp__sub_8297C630(ctx, base);
|
__imp__sub_8297C630(ctx, base);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue