From ef29333d211192b802a3bae30a4527968362b31b Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Wed, 26 Jul 2023 14:26:09 +0200 Subject: [PATCH] Update usehull check for crouched Check its 1 instead of non-zero. Thanks to @oxiKKK --- src/features/esp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/esp.c b/src/features/esp.c index 044632a..fcd7e5b 100644 --- a/src/features/esp.c +++ b/src/features/esp.c @@ -80,7 +80,7 @@ void esp(void) { if (!valid_player(ent) || !is_alive(ent) || vec_is_zero(ent->origin)) continue; - const int bh = (ent->curstate.usehull) ? 44 : 70; + const int bh = (ent->curstate.usehull == 1) ? 44 : 70; const int bw = 25; /* If ESP_BOX is enabled, draw it. If it returns false, continue */