This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| * Copyright (C) 2024 Igalia S.L. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * 1. Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. | |
| * 2. Redistributions in binary form must reproduce the above copyright | |
| * notice, this list of conditions and the following disclaimer in the | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #define _XOPEN_SOURCE 700 | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <ucontext.h> | |
| #include <unistd.h> | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <sys/time.h> | |
| #define MAX_TASKS 10 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /// Manually disconnects all tile connections which cannot be climbed by the characters. | |
| /// This is required because at the time of navmesh generation, the values were set to infinite. | |
| /// @param chf Compact heightfield object which will be updated. | |
| /// @param walkableClime The walkable climb height value in voxels. | |
| static void selectivelyEnforceWalkableClimb(rcCompactHeightfield &chf, int walkableClimb) | |
| { | |
| for (int y = 0; y < chf.height; ++y) | |
| { | |
| for (int x = 0; x < chf.width; ++x) | |
| { |