mirror of
https://github.com/zeldaret/botw
synced 2026-06-09 04:29:49 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user