From f7cafd7d3bb8612fa0a97e9b15542042a6a88dc1 Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Fri, 5 Jan 2024 11:25:51 +0100 Subject: [PATCH] fix: bsp parser on cs_office see https://github.com/ReactiioN1337/valve-bsp-parser/pull/18 --- ImGuiExternal/Source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImGuiExternal/Source.cpp b/ImGuiExternal/Source.cpp index 762de67..b546a5c 100644 --- a/ImGuiExternal/Source.cpp +++ b/ImGuiExternal/Source.cpp @@ -140,7 +140,7 @@ void Draw() { } bool is_visible = true; - if (parsed_map && std::string(map_name) != "cs_office.bsp") + if (parsed_map) is_visible = _bsp_parser.is_visible(vector3{pos.x, pos.y, pos.z + 66}, vector3{absOrigin.x, absOrigin.y, absOrigin.z + 66}); //getting name