fix: bsp parser on cs_office

see https://github.com/ReactiioN1337/valve-bsp-parser/pull/18
This commit is contained in:
2024-01-05 11:25:51 +01:00
parent bfd386fa96
commit f7cafd7d3b

View File

@@ -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