grey saltroll out in menu if sloperoll disabled

This commit is contained in:
Alug committed 2025-03-24 18:22:22 +01:00
1 parent e369fbded4
commit aea03cc2b7
1 file changed
+10 -2
+10 -2
View File
@@ -3506,8 +3506,16 @@ void Moviemode_option_Onchange(void)
void PDistort_menu_Onchange(void)
{
OP_PlayerDistortMenu[slrotatedist].status =
(cv_sloperoll.value) ? IT_STRING | IT_CVAR : IT_GRAYEDOUT;
if (cv_sloperoll.value)
{
OP_PlayerDistortMenu[slrotatedist].status = IT_STRING | IT_CVAR;
OP_PlayerDistortMenu[saltroll].status = IT_STRING | IT_CVAR;
}
else
{
OP_PlayerDistortMenu[slrotatedist].status = IT_GRAYEDOUT;
OP_PlayerDistortMenu[saltroll].status = IT_GRAYEDOUT;
}
}
void Bird_menu_Onchange(void)