summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libultraship/libultraship/ImGuiImpl.cpp12
-rw-r--r--soh/src/overlays/actors/ovl_player_actor/z_player.c11
2 files changed, 20 insertions, 3 deletions
diff --git a/libultraship/libultraship/ImGuiImpl.cpp b/libultraship/libultraship/ImGuiImpl.cpp
index 31e2eeb0b..f4cd00053 100644
--- a/libultraship/libultraship/ImGuiImpl.cpp
+++ b/libultraship/libultraship/ImGuiImpl.cpp
@@ -975,7 +975,8 @@ namespace SohImGui {
Tooltip("The default response to Kaepora Gaebora is\nalways that you understood what he said");
EnhancementCheckbox("Fast Ocarina Playback", "gFastOcarinaPlayback");
Tooltip("Skip the part where the Ocarina playback is called when you play\na song");
-
+ EnhancementCheckbox("Instant Putaway", "gInstantPutaway");
+ Tooltip("Allow Link to put items away without having to wait around");
ImGui::EndMenu();
}
@@ -1249,6 +1250,15 @@ namespace SohImGui {
if (ImGui::SliderInt("##FPSInterpolation", &val, 20, 250, "", ImGuiSliderFlags_AlwaysClamp))
{
+ if (val > 250)
+ {
+ val = 250;
+ }
+ else if (val < 20)
+ {
+ val = 20;
+ }
+
CVar_SetS32(fps_cvar, val);
needs_save = true;
}
diff --git a/soh/src/overlays/actors/ovl_player_actor/z_player.c b/soh/src/overlays/actors/ovl_player_actor/z_player.c
index 93a219a9e..072f5c20c 100644
--- a/soh/src/overlays/actors/ovl_player_actor/z_player.c
+++ b/soh/src/overlays/actors/ovl_player_actor/z_player.c
@@ -9905,8 +9905,15 @@ void func_808473D4(GlobalContext* globalCtx, Player* this) {
this->unk_837 = 20;
}
else if (this->unk_837 != 0) {
- doAction = DO_ACTION_NONE;
- this->unk_837--;
+ if (CVar_GetS32("gInstantPutaway", 0) != 0)
+ {
+ this->unk_837 = 0;
+ }
+ else
+ {
+ doAction = DO_ACTION_NONE;
+ this->unk_837--;
+ }
}
Interface_SetDoAction(globalCtx, doAction);