From aea03cc2b769b12ad8fed6c4a8f5e52e11bc8444 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 24 Mar 2025 18:22:07 +0100 Subject: [PATCH] grey saltroll out in menu if sloperoll disabled --- src/m_menu.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index 46692943c..096f6e141 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -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)