From 08eb5fc0f8a5a285a5e9fd3ca3f1c660b334c793 Mon Sep 17 00:00:00 2001 From: LightCat Date: Sat, 13 Apr 2019 20:05:36 +0200 Subject: [PATCH] Fix nullmode breaking catbots --- src/hack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hack.cpp b/src/hack.cpp index 7c5baaa0..a45984be 100644 --- a/src/hack.cpp +++ b/src/hack.cpp @@ -148,7 +148,7 @@ void critical_error_handler(int signum) static bool blacklist_file(const char *filename) { const static char *blacklist[] = { ".vtx", ".vtf", ".pcf", ".mdl" }; - if (!filename || !std::strcmp(filename, "models/error.mdl") || !std::strcmp(filename, "models/vgui/competitive_badge.mdl") || !std::strcmp(filename, "models/vgui/12v12_badge.mdl") || !std::strncmp(filename, "models/player/", 14)) + if (!filename || !std::strcmp(filename, "models/error.mdl") || !std::strcmp(filename, "models/vgui/competitive_badge.mdl") || !std::strcmp(filename, "models/vgui/12v12_badge.mdl") || !std::strncmp(filename, "models/player/", 14) || !std::strncmp(filename, "models/weapons/", 15)) return false; std::size_t len = std::strlen(filename);