mirror of https://github.com/zeldaret/botw.git
ksys/phys: Improve RagdollController::setUnk1 match
https://discord.com/channels/688807550715560050/745633101157498880/1054479382892249119 [20:24]TheGreatB3: The Wii U version sets the fields to zero if the value is less than zero, so I think it's really using clamp.
This commit is contained in:
parent
8c9a316c5b
commit
a217abe647
|
@ -518,7 +518,7 @@ void RagdollController::setKeyframed(int bone_index, bool keyframed,
|
|||
}
|
||||
|
||||
void RagdollController::setUnk1(u8 value) {
|
||||
value = sead::Mathi::clampMax(value, sRagdollCtrlUnk1);
|
||||
value = sead::Mathi::clamp(value, 0, sRagdollCtrlUnk1);
|
||||
_e9 = value;
|
||||
_e8 = value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue