From 5433b879de5495bfb6c2532fb31ed38b3bc3e931 Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 27 Oct 2026 22:00:09 +0100 Subject: edge-case in weapon displaying and fixing RPG filtering --- src/esp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/esp.cpp b/src/esp.cpp index b29a0fb..a154d5c 100644 --- a/src/esp.cpp +++ b/src/esp.cpp @@ -1426,7 +1426,7 @@ static int classify_weapon(const char *model, const char *cls, char *label, snprintf(label, outn, "Shotgun"); else if (item_icontains(model, "w_crossbow")) snprintf(label, outn, "Crossbow"); - else if (item_icontains(model, "w_rpg")) + else if (item_icontains(model, "w_rocket_launcher")) snprintf(label, outn, "RPG"); else if (item_icontains(model, "w_frag") || item_icontains(model, "w_grenade")) @@ -1441,7 +1441,7 @@ static int classify_weapon(const char *model, const char *cls, char *label, else if (item_icontains(model, "w_sniper")) snprintf(label, outn, "Sniper"); else - snprintf(label, outn, "Weapon"); + snprintf(label, outn, "%s", model); return 1; } -- cgit v1.2.3