582 Commits

Author SHA1 Message Date
Ben Hymers
6285b17587 Merge pull request #102 from rafzi/allocfix
handle the case when allocSpan fails to allocate memory
2015-12-18 17:23:02 +00:00
Rafael Stahl
15025e8519 handle the case when allocSpan fails to allocate memory. adds bool return types to rcAddSpan, rcRasterizeTriangle and rcRasterizeTriangles 2015-12-18 16:41:02 +01:00
Ben Hymers
724092a9ec Merge pull request #137 from rafzi/scopedtimer
add rcScopedTimer to fix timers not being stopped on all paths and to…
2015-12-18 15:24:07 +00:00
Rafael Stahl
6d3c9b38ba add rcScopedTimer to fix timers not being stopped on all paths and to prevent it in the future. 2015-12-18 14:48:31 +01:00
Ben Hymers
68ec46a685 Merge pull request #136 from Janiels/null-check
findNearestPoly now fails when nearestRef is null, and only assigns it when the function succeeds
2015-12-17 18:14:41 +00:00
Jakob Botsch Nielsen
643a3a7043 findNearestPoly now fails when nearestRef is null, and only assigns it when the function succeeds 2015-12-17 18:57:06 +01:00
Ben Hymers
0ccfd632fa Merge pull request #133 from Janiels/master
Use intermediate variable for nearest point in findNearestPoly
2015-12-17 17:40:57 +00:00
Jakob Botsch Nielsen
35fb7d5c16 Merge pull request #78 from grahamboree/RC_SPAN_HEIGHT_BITS_fix
Use RC_SPAN_HEIGHT_BITS when setting the bitfield size of rcSpan::smin and rcSpan::smax
2015-12-17 14:16:02 +01: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
Jakob Botsch Nielsen
ede84bae22 Merge pull request #103 from jackpoz/warning_fix
Fix 2 "unused parameter" build warnings
2015-12-17 13:52:17 +01:00
Graham Pentheny
5b2dce6a18 Merge pull request #134 from grahamboree/Comments
Better documentation for a few private fields in dtCrowdAgent
2015-12-16 23:41:59 -05:00
Graham Pentheny
b9804c5210 Better documentation for a few private fields in dtCrowdAgent as discussed in PR #110 2015-12-16 23:37:41 -05:00
Jakob Botsch Nielsen
7d924b1eee Use intermediate variable for nearest point in findNearestPoly
When the same point is used as center and as nearestPt, the function
would override center and give wrong results.

Fix #118
2015-12-16 18:18:11 +01:00
Ben Hymers
7b4d18f459 Merge pull request #132 from Kromster80/patch-5
Fix as discussed in PR#111
2015-12-16 16:35:41 +00:00
Krom Stern
4d3f406546 Fix as discussed in PR#111
Typo fix
2015-12-16 19:28:27 +03:00
Ben Hymers
e2f13c2bab Set AppVeyor and Travis CI badges to recastnavigation repo in README 2015-12-16 02:06:16 +00:00
Ben Hymers
7c9460cfb3 Merge pull request #131 from hymerman/ci-squashed
Add AppVeyor and Travis CI build scripts
2015-12-16 01:57:41 +00:00
Ben Hymers
e558e98592 Add AppVeyor and Travis CI build scripts
Build scripts download SDL, download (or build) premake5, generate projects, then build, in several configurations and platforms

Project now builds with premake5 instead of premake4 to allow VS2015 project generation
Tweaked SDL directory dependency to work better with CI
Update README
2015-12-16 01:33:18 +00:00
Mikko Mononen
2ea77f6cf4 Merge pull request #119 from richard-fine/features/raycast-edgeinfo
Include hit edge index in dtRaycastHit.
2015-11-15 23:55:18 +02:00
Richard Fine
67736ae7d5 Include hit edge index in dtRaycastHit.
This makes it simpler to investigate exactly what is blocking a ray - for example, if an agent cannot move onto a polygon due to QueryFilter flags, then this provides a way for the agent to find out which flags it needs to have and to perform a state change which alters its movement flags.
2015-11-15 21:46:30 +00:00
Mikko Mononen
2bcd32b0a3 Merge pull request #114 from huanzai/patch-1
Update DetourTileCache.cpp
2015-10-10 11:30:11 +03:00
huanzai
3a1256ecb8 Update DetourTileCache.cpp
wrong type of return value
2015-10-10 12:28:07 +08:00
jackpoz
18b537c23f Fix 2 "unused parameter" build warnings 2015-06-28 21:32:16 +02:00
Mikko Mononen
1dd5cf1883 Updated readme to explain which SDL dll to use on windows. 2015-06-22 18:49:53 +03:00
Mikko Mononen
887f208332 Merge pull request #101 from CharlesJClark/CharlesJClark-patch-1
Update RecastMesh.cpp
2015-06-21 22:06:33 +03:00
CharlesJClark
6730d4ddda Update RecastMesh.cpp
Fixed validation checks of allocations.
2015-06-19 09:33:27 -07:00
Sandern
838fc67ab0 Fix old mesh tile not removed when new tile is empty 2015-05-05 16:42:14 +02:00
Mikko Mononen
cadc3b0b14 Merge pull request #94 from leif81/resetmovetarget
reset agent desired velocity in resetMoveTarget
2015-05-01 21:33:44 +03:00
Leif Gruenwoldt
2ec9270b34 reset agent desired velocity in resetMoveTarget
Otherwise, if velocity was non zero at time resetMoveTarget is called the agent would continue to move indefinitely at that velocity (a straight line) which was not the intended behaviour.

As discussed in https://groups.google.com/forum/#!topic/recastnavigation/QoLNGz5o6e8
2015-05-01 13:49:12 -04:00
Mikko Mononen
acbbe507fd Merge pull request #82 from Kromster80/loopFix
Loop fix and MAX_SEARCH
2015-02-19 14:23:07 +02:00
Kromster80
3ca4db4864 Fixed loop overrun 2015-02-19 14:03:59 +03:00
Graham Pentheny
df6fac219b Use RC_SPAN_HEIGHT_BITS when setting the bitfield size of smin and smax in rcSpan. 2015-01-31 17:18:02 -05:00
Mikko Mononen
2ab396857b Merge pull request #68 from grahamboree/math_functions
Removed redundant dtSqrt function and replaced calls to it with dtMathSqrtf
2015-01-07 10:22:33 +02:00
Kromster80
5c45736347 MAX_SEARCH constant instead of hardcoded value 2015-01-06 23:26:14 +03:00
Mikko Mononen
c54f2a6e71 Merge pull request #70 from Kromster80/DumpFix
Fixed what looks like a c/p bug
2015-01-06 16:15:21 +02:00
Kromster80
0bc724b32a Fixed what looks like a c/p bug 2015-01-06 17:12:03 +03:00
grahamboree
45b36f4d75 Removed redundant dtSqrt function and replaced calls to it with dtMathSqrtf 2015-01-03 16:00:00 -05:00
Mikko Mononen
2f788530f5 Merge pull request #67 from grahamboree/removed_macros
Replaced math function macros with inline functions.
2015-01-03 01:17:35 +02:00
grahamboree
a792998286 Replaced math function macros with inline functions. 2015-01-02 18:10:45 -05:00
Mikko Mononen
0fee5ac592 Merge pull request #66 from grahamboree/gitignore
Added Visual Studio 2013 idb files to gitignore.
2015-01-03 01:04:52 +02:00
grahamboree
75dc9eb470 Added Visual Studio 2013 idb files to gitignore. 2015-01-02 17:46:38 -05:00
Mikko Mononen
86d57bd5e9 Merge pull request #61 from Kromster80/master
Removed superflous memset
2014-12-31 20:30:25 +02:00
Mikko Mononen
2fe5c4fb0c Merge pull request #62 from grahamboree/master
A few edge-case memory leak fixes and an uninitialized pointer.
2014-12-31 20:25:59 +02:00
Mikko Mononen
b3f1e28c71 Merge pull request #63 from speakfool/master
Fixed a memory corrupt in DetourCrowd
2014-12-31 20:25:08 +02:00
ZhongTang
dc5f95eafa Fixed: a memory corrupt in DetourCrowd 2014-12-30 14:11:41 +08:00
grahamboree
0482a3104c Fixed potential memory leak deserializing an InputGeom. 2014-12-24 15:35:36 -05:00
grahamboree
ce4c63787b Fixed a potential memory leak when reading a mesh file. 2014-12-24 15:34:01 -05:00
grahamboree
91fbf05ec3 Uninitialized pointer in TempObstacleCreationTool 2014-12-24 15:32:50 -05:00
grahamboree
42afde6273 Fixed potential memory leak when loading test case files. 2014-12-24 15:29:47 -05:00
grahamboree
35ac315b70 Fixed potential memory leak when loading font file. 2014-12-24 15:22:23 -05:00