Advertisement
illwieckz

ladder

Apr 3rd, 2023
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. diff --git a/src/shared/navgen/nav.cpp b/src/shared/navgen/nav.cpp
  2. index 4ff58fdf3..a42cdcad3 100644
  3. --- a/src/shared/navgen/nav.cpp
  4. +++ b/src/shared/navgen/nav.cpp
  5. @@ -264,6 +264,10 @@ void NavmeshGenerator::LoadTris( std::vector<float> &verts, std::vector<int> &tr
  6. int firstSide = bspBrushes[i].firstSide;
  7. const dshader_t* brushShader = &bspShaders[bspBrushes[i].shaderNum];
  8.  
  9. + if ( brushShader->surfaceFlags & SURF_LADDER ) {
  10. + Log::Warn("found ladder surface!");
  11. + }
  12. +
  13. if ( !( brushShader->contentFlags & solidFlags ) ) {
  14. continue;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement