summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-27 22:00:09 +0100
committersalmonik <salmonik@tuta.io>2026-10-27 22:00:09 +0100
commit5433b879de5495bfb6c2532fb31ed38b3bc3e931 (patch)
tree06a830f7e937dbdd3a080c212b260e4daef17976 /src
parentItem ESP: focus crate diagnostics on nearby props; log build time (diff)
downloadhl2h-5433b879de5495bfb6c2532fb31ed38b3bc3e931.tar.gz
hl2h-5433b879de5495bfb6c2532fb31ed38b3bc3e931.zip
edge-case in weapon displaying and fixing RPG filtering
Diffstat (limited to '')
-rw-r--r--src/esp.cpp4
1 files changed, 2 insertions, 2 deletions
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,
1426 snprintf(label, outn, "Shotgun"); 1426 snprintf(label, outn, "Shotgun");
1427 else if (item_icontains(model, "w_crossbow")) 1427 else if (item_icontains(model, "w_crossbow"))
1428 snprintf(label, outn, "Crossbow"); 1428 snprintf(label, outn, "Crossbow");
1429 else if (item_icontains(model, "w_rpg")) 1429 else if (item_icontains(model, "w_rocket_launcher"))
1430 snprintf(label, outn, "RPG"); 1430 snprintf(label, outn, "RPG");
1431 else if (item_icontains(model, "w_frag") || 1431 else if (item_icontains(model, "w_frag") ||
1432 item_icontains(model, "w_grenade")) 1432 item_icontains(model, "w_grenade"))
@@ -1441,7 +1441,7 @@ static int classify_weapon(const char *model, const char *cls, char *label,
1441 else if (item_icontains(model, "w_sniper")) 1441 else if (item_icontains(model, "w_sniper"))
1442 snprintf(label, outn, "Sniper"); 1442 snprintf(label, outn, "Sniper");
1443 else 1443 else
1444 snprintf(label, outn, "Weapon"); 1444 snprintf(label, outn, "%s", model);
1445 return 1; 1445 return 1;
1446} 1446}
1447 1447