From c2a0d94d028b472691507936ab3a7c08c86c83e6 Mon Sep 17 00:00:00 2001 From: RoboSchmied Date: Fri, 12 Apr 2024 17:54:01 +0200 Subject: [PATCH 35/36] Fix: 6 typos (#698) Signed-off-by: RoboSchmied --- Detour/Include/DetourNavMeshBuilder.h | 4 ++-- Detour/Source/DetourNavMeshBuilder.cpp | 6 +++--- DetourTileCache/Include/DetourTileCacheBuilder.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Detour/Include/DetourNavMeshBuilder.h b/Detour/Include/DetourNavMeshBuilder.h index f99be5d..1840ab5 100644 --- a/Detour/Include/DetourNavMeshBuilder.h +++ b/Detour/Include/DetourNavMeshBuilder.h @@ -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); diff --git a/Detour/Source/DetourNavMeshBuilder.cpp b/Detour/Source/DetourNavMeshBuilder.cpp index 2c43370..07ba863 100644 --- a/Detour/Source/DetourNavMeshBuilder.cpp +++ b/Detour/Source/DetourNavMeshBuilder.cpp @@ -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. diff --git a/DetourTileCache/Include/DetourTileCacheBuilder.h b/DetourTileCache/Include/DetourTileCacheBuilder.h index 1103cb6..20693bf 100644 --- a/DetourTileCache/Include/DetourTileCacheBuilder.h +++ b/DetourTileCache/Include/DetourTileCacheBuilder.h @@ -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. -- 2.43.0