From 4d0affc73e554ca1a56f480d8dd5180fbd1d7d1f Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 1 Sep 2019 10:38:22 +0200 Subject: [PATCH] Simplify normal_or_gentle macro --- qcsrc/common/util.qh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 2033aa94b..756e02cf5 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -201,7 +201,7 @@ void FindConnectedComponent(entity e, .entity fld, findNextEntityNearFunction_t #else #define GENTLE autocvar_sv_gentle #endif - #define normal_or_gentle(normal, gentle) (GENTLE ? ((gentle != "") ? gentle : normal) : normal) + #define normal_or_gentle(normal, gentle) ((GENTLE && (gentle != "")) ? gentle : normal) #endif #ifdef GAMEQC -- 2.39.2