Fix granularity math

This commit is contained in:
Josh Bodner 2022-05-21 21:57:47 -07:00
commit 98b133fd6d
2 changed files with 2 additions and 2 deletions

View file

@ -754,7 +754,7 @@ namespace SohImGui {
ImGui::EndMenu(); ImGui::EndMenu();
} }
EnhancementSliderInt("Vine/Ladder Climb speed: %dx", "##CLIMBSPEED", "gClimbSpeed", 1, 9, ""); EnhancementSliderInt("Vine/Ladder Climb speed +%d", "##CLIMBSPEED", "gClimbSpeed", 0, 12, "");
EnhancementCheckbox("No Clip", "gNoClip"); EnhancementCheckbox("No Clip", "gNoClip");
Tooltip("Allows you to walk through walls"); Tooltip("Allows you to walk through walls");
EnhancementCheckbox("Climb Everything", "gClimbEverything"); EnhancementCheckbox("Climb Everything", "gClimbEverything");

View file

@ -11613,7 +11613,7 @@ void func_8084BF1C(Player* this, GlobalContext* globalCtx) {
phi_f2 = -1.0f; phi_f2 = -1.0f;
} }
this->skelAnime.playSpeed = phi_f2 * phi_f0 * (CVar_GetS32("gClimbSpeed", 1) + 1.0) / 2.0; this->skelAnime.playSpeed = phi_f2 * phi_f0 + phi_f2 * CVar_GetS32("gClimbSpeed", 0);
if (this->unk_850 >= 0) { if (this->unk_850 >= 0) {
if ((this->actor.wallPoly != NULL) && (this->actor.wallBgId != BGCHECK_SCENE)) { if ((this->actor.wallPoly != NULL) && (this->actor.wallBgId != BGCHECK_SCENE)) {