Skip to content

Commit

Permalink
port: fix some sliders in extended options
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Oct 28, 2023
1 parent 015817f commit 2813ece
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions port/src/optionsmenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,10 @@ static MenuItemHandlerResult menuhandlerCrosshairSway(s32 operation, struct menu
{
switch (operation) {
case MENUOP_GETSLIDER:
data->slider.value = g_PlayerCrosshairSway * 10.f;
data->slider.value = g_PlayerCrosshairSway * 10.f + 0.5f;
break;
case MENUOP_SET:
g_PlayerCrosshairSway = data->slider.value / 10.f;
g_PlayerCrosshairSway = (f32)data->slider.value / 10.f;
break;
}

Expand All @@ -472,10 +472,10 @@ static MenuItemHandlerResult menuhandlerScreenShake(s32 operation, struct menuit
{
switch (operation) {
case MENUOP_GETSLIDER:
data->slider.value = g_ViShakeIntensityMult * 10.f;
data->slider.value = g_ViShakeIntensityMult * 10.f + 0.5f;
break;
case MENUOP_SET:
g_ViShakeIntensityMult = data->slider.value / 10.f;
g_ViShakeIntensityMult = (f32)data->slider.value / 10.f;
break;
}

Expand Down

0 comments on commit 2813ece

Please sign in to comment.