From 74d17cf8254f2b4e00d34225d40511a427f8ec1d Mon Sep 17 00:00:00 2001 From: j4reporting <45177907+j4reporting@users.noreply.github.com> Date: Tue, 14 Jan 2025 12:59:45 +0100 Subject: [PATCH] display keys for hipnotic --- Quake/sbar.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Quake/sbar.c b/Quake/sbar.c index b9968c77..5bea3eb5 100644 --- a/Quake/sbar.c +++ b/Quake/sbar.c @@ -1106,11 +1106,17 @@ static void Sbar_DrawModern (cb_context_t *cbx) { const int KEY_ICON_X = 284; const int KEY_ICON_Y = 115; + const int KEY_ICON_HIPNOTIC_Y = 122; // keys for (int i = 0; i < 2; i++) { - if (cl.items & (1 << (17 + i)) && (!hipnotic || (i > 1))) - Sbar_DrawPic (cbx, KEY_ICON_X, KEY_ICON_Y - (i * 16), sb_items[i]); + if (cl.items & (1 << (17 + i))) + { + if (!hipnotic) + Sbar_DrawPic (cbx, KEY_ICON_X, KEY_ICON_Y - (i * 16), sb_items[i]); + else + Sbar_DrawPic (cbx, KEY_ICON_X, KEY_ICON_HIPNOTIC_Y - (i * 10), sb_items[i]); + } } }