30 Commits

Author SHA1 Message Date
Graham Pentheny
5111139558
Fixes for many low-severity compiler warnings (#576)
* Fixes for many low-severity compiler warnings

Mostly a lot of pedantic things like end-of-file newlines and commas on the last enum value.  However some fixes like the weak v-tables warnings fixes might help with code gen.  It's unclear if the linker is able to elide multiple copies of the same type's v-table in different translation units, (sometimes it can) but these fixes ensure we don't have to rely on it.
2022-11-11 21:03:03 -05:00
Brian Swenson
c02d6fa81e -Wunused-but-set-variable flagged variables removed 2022-06-03 02:24:29 -04:00
Nikolay Zapolnov
689cf00bd9 Call proper memory deallocation function. 2018-05-14 14:50:48 +02:00
Matthew Endsley
c70fc8a89a Return OOM error when navmeshtile allocations fail
This was previsously return a DT_SUCCESS mask, as the prior
call to dtAllocTileCache* had succeeded.
2017-08-24 10:35:04 +02:00
aymarfisherman
7cca61dc41 Renamed all instances of 'extents' to 'halfExtents' (#279) 2017-08-20 17:05:51 +02:00
aymarfisherman
840c100639 Added option to add rotated Box obstacle to TileCache. (#278)
Very useful when you have a obstacle with a big difference in x to z ratio and that could be rotated (not aligned), like a wall.
2017-07-25 13:35:23 +02:00
cmf028
9052db45d8 Add support for AABB shaped obstacles to dtTileCache (#215) 2016-07-13 09:20:28 -04:00
Jakob Botsch Nielsen
b86c1e12b3 Fix a memory leak in dtBuildTileCacheLayer (#212) 2016-06-15 10:10:54 +02:00
Jakob Botsch Nielsen
36183edb55 Add upToDate param for dtTileCache::update (#203)
This changes dtTileCache::update to add an optional parameter that
indicates whether the tile cache is up to date. This is useful to
determine whether calling the function again would do anything.
2016-04-25 20:27:14 +02:00
Ben Hymers
3a0140c2ac Initialise dtTileCache::m_reqs on construction 2016-03-15 07:56:56 +00:00
Ben Hymers
d7d58b98d9 Fix ReSharper warnings: remove unused methods 2016-02-26 08:41:17 +00:00
Ben Hymers
f117bf4a91 Fix possible compile/link error with multiple BuildContext definitions
There is a class and a struct called BuildContext in two different files,
one .h and one .cpp. Depending on how the user structures their program,
it's possible that this would cause a compile or link error, as seems to
have happened in #44. I've just renamed the struct to get around this.

Fixes #44
2016-01-14 23:57:48 +00:00
Jakob Botsch Nielsen
d742e04cc4 Merge pull request #95 from Sandern/fix-oldtile-not-removed
Make sure to remove the old tile if the new tile is empty (due to temp obstacles)
2015-12-17 14:06:30 +01:00
huanzai
3a1256ecb8 Update DetourTileCache.cpp
wrong type of return value
2015-10-10 12:28:07 +08:00
Sandern
838fc67ab0 Fix old mesh tile not removed when new tile is empty 2015-05-05 16:42:14 +02:00
Kromster80
1381ab113e Update DetourTileCacheBuilder.cpp 2014-11-10 15:08:53 +03:00
grahamboree
dc7e248de6 Removed header dependency between Detour and Recast due to addition of rcIgnoreUnused. Added dtIgnoreUnused. 2013-10-15 17:29:14 -04:00
grahamboree
35db2af872 Silenced additional unused parameter warning. 2013-10-14 16:36:49 -04:00
Mikko Mononen
9f632d99fd Merge pull request #1 from mendsley/issue_64bit_arithmetic
Fix 64bit pointer arithmetic warnings
2013-09-16 11:42:58 -07:00
Matthew Endsley
b0e4e6a834 Add wrappers for the standard math library
Simplifies transition to software based math libraries
for projects requiring determinism.
2013-09-15 20:09:01 -07:00
Matthew Endsley
604aae43bd Fix 64bit pointer arithmetic warnings 2013-09-15 19:35:52 -07:00
Mikko Mononen
cb93a7062b Remove navmesh tile even if a empty mesh is returned. 2012-05-19 09:20:24 +00:00
Mikko Mononen
e6b1d141d2 Fixed warnings when compiling with -Wshadow. 2012-02-22 17:25:46 +00:00
Mikko Mononen
98eee7e23a Fix for tile cache merge polys, fix for temp obstacle handleUpdate() (call base class). 2012-02-07 16:04:08 +00:00
Mikko Mononen
336409d037 Added tool states, Crowd can be let run in the BG while changing mesh, Added off-mesh connection support for tile cache, Fixed tile cache area generation, Added debugdraw for tile cache build steps, Migrated to Xcode4. 2012-02-04 21:27:07 +00:00
Mikko Mononen
1a66ddf71a Partial checkin or tile cache endian swap. 2011-12-19 19:31:39 +00:00
Mikko Mononen
d2148ff57d Added better state control for tile cache obstacles. 2011-11-17 19:11:12 +00:00
Cameron hart
3cee73cb8c Added CMake files for Linux compilation and removed Makefiles build. CMake build should also work on Windows and MacOS for those who wish to use it. 2011-04-20 10:55:10 +00:00
Mikko Mononen
fba6a794af Missing tile cache files. 2011-04-19 05:40:57 +00:00
Mikko Mononen
9902efc845 TileCache progress: Moved tile cache to Detour and made proper class for it. Better obstacles and tile layer management. 2011-04-16 07:57:50 +00:00