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:
Léo Lam 2022-12-19 20:27:56 +01:00
parent 8c9a316c5b
commit a217abe647
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ void RagdollController::setKeyframed(int bone_index, bool keyframed,
} }
void RagdollController::setUnk1(u8 value) { void RagdollController::setUnk1(u8 value) {
value = sead::Mathi::clampMax(value, sRagdollCtrlUnk1); value = sead::Mathi::clamp(value, 0, sRagdollCtrlUnk1);
_e9 = value; _e9 = value;
_e8 = value; _e8 = value;
} }