From 8fe58db31101fbe5054f5c0e3f1abb04d6bb8f5f Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 18 Apr 2024 03:16:38 -0400 Subject: [PATCH] - allow A_SetCrosshair(-1) to hide the crosshair for effects such as custom scopes --- src/g_statusbar/shared_sbar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/g_statusbar/shared_sbar.cpp b/src/g_statusbar/shared_sbar.cpp index 47b4e0f2c5..1934e86429 100644 --- a/src/g_statusbar/shared_sbar.cpp +++ b/src/g_statusbar/shared_sbar.cpp @@ -233,6 +233,10 @@ void ST_LoadCrosshair(bool alwaysload) { num = crosshair; } + if (num < 0) + { + num = 0; + } ST_LoadCrosshair(num, alwaysload); }