Backport recastnavigation revision 254.

Fixes for:
* function comments out of date.
* dtNavMesh::init doesn't return correct dtStatus

See:
* https://code.google.com/p/recastnavigation/issues/detail?id=140
* https://code.google.com/p/recastnavigation/issues/detail?id=143
* https://code.google.com/p/recastnavigation/issues/detail?id=147

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Backport recastnavigation revision 255.

DETOUR return status codes changed, check blog! Changed Detour status
codes to be bitfields which describes the highlevel status plus some
details about the failure or quality of the result.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Make use of added Detour return codes.

Instead of using status flags to check for Detour results
we now rely on the helper functions dtStatusSucceed(),
dtStatusFailed() or dtStatusInProgress().

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Backport recastnavigation revision 256.

Removed XCode user files.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Build Recast demo application.

When the build is configured with the parameter WITH_RECAST_DEMO
we now will build the OpenGL/SDL based Recast viewer for testing
the movement maps generated by the movement map generator in a
visual way.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>

Conflicts:
	dep/recastnavigation/CMakeLists.txt