Skip to content

Commit

Permalink
Fix: 6 typos (recastnavigation#698)
Browse files Browse the repository at this point in the history
Signed-off-by: RoboSchmied <[email protected]>
  • Loading branch information
RoboSchmied authored Apr 12, 2024
1 parent 44ff936 commit c2a0d94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Detour/Include/DetourNavMeshBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ struct dtNavMeshCreateParams
/// @return True if the tile data was successfully created.
bool dtCreateNavMeshData(dtNavMeshCreateParams* params, unsigned char** outData, int* outDataSize);

/// Swaps the endianess of the tile data's header (#dtMeshHeader).
/// Swaps the endianness of the tile data's header (#dtMeshHeader).
/// @param[in,out] data The tile data array.
/// @param[in] dataSize The size of the data array.
bool dtNavMeshHeaderSwapEndian(unsigned char* data, const int dataSize);

/// Swaps endianess of the tile data.
/// Swaps endianness of the tile data.
/// @param[in,out] data The tile data array.
/// @param[in] dataSize The size of the data array.
bool dtNavMeshDataSwapEndian(unsigned char* data, const int dataSize);
Expand Down
6 changes: 3 additions & 3 deletions Detour/Source/DetourNavMeshBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,10 +705,10 @@ bool dtNavMeshHeaderSwapEndian(unsigned char* data, const int /*dataSize*/)

/// @par
///
/// @warning This function assumes that the header is in the correct endianess already.
/// Call #dtNavMeshHeaderSwapEndian() first on the data if the data is expected to be in wrong endianess
/// @warning This function assumes that the header is in the correct endianness already.
/// Call #dtNavMeshHeaderSwapEndian() first on the data if the data is expected to be in wrong endianness
/// to start with. Call #dtNavMeshHeaderSwapEndian() after the data has been swapped if converting from
/// native to foreign endianess.
/// native to foreign endianness.
bool dtNavMeshDataSwapEndian(unsigned char* data, const int /*dataSize*/)
{
// Make sure the data is in right format.
Expand Down
2 changes: 1 addition & 1 deletion DetourTileCache/Include/DetourTileCacheBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ dtStatus dtBuildTileCachePolyMesh(dtTileCacheAlloc* alloc,
dtTileCacheContourSet& lcset,
dtTileCachePolyMesh& mesh);

/// Swaps the endianess of the compressed tile data's header (#dtTileCacheLayerHeader).
/// Swaps the endianness of the compressed tile data's header (#dtTileCacheLayerHeader).
/// Tile layer data does not need endian swapping as it consist only of bytes.
/// @param[in,out] data The tile data array.
/// @param[in] dataSize The size of the data array.
Expand Down

0 comments on commit c2a0d94

Please sign in to comment.