21 Commits

Author SHA1 Message Date
Graham Pentheny
3527a8270d Replace xorb with xor operator (#770)
The xorb function just gets compiled to an xor instruction in -O3, so this is just unnecessary pessimistic code.

https://godbolt.org/z/o5TGjsx6T
2025-03-18 09:42:55 -07:00
Graham Pentheny
93bd042349 Disable calls to isfinite when compiling with -ffast-math (#747)
Fast math is not required, but it speeds up some calculations at the expense of accuracy. There are some functions like dtMathIsfinite that use floating point functions that become undefined behavior when compiled with fast-math, so we need to conditionally short-circuit these functions when compiled with that flag.

-Wnan-infinity-disabled is complaining about the isfinite call in dtMathIsfinite.

This also sets the linux runner explicitly to Ubuntu 24.04, since ubuntu-latest defaults to 22.04 for some reason. This also updates gcc and clang to the latest versions in apt and logs their version to the run output.  We need at least clang18 to disable the -Wnan-infinity-disabled warning for Catch.

Finally, this also removes some unused code that was throwing a warning (and thus an error) on newer compiler versions.
2024-12-29 12:36:08 -05:00
Graham Pentheny
a87a328b8b Replaced another dead link with an archived copy 2023-05-21 01:38:42 -04:00
Alexander
3c4a34968a Fix for out of bounds read in tile cache builder. (#601)
Fix for reading data out of bounds in tile cache builder in
removeVertex.
While removing a vertex data is read from i+1 index from mesh.verts,
which becomes out of bound for the last vertex, which we shouldn't copy
over in this case.
2023-03-15 23:04:41 -04:00
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
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
Ben Hymers
d7d58b98d9 Fix ReSharper warnings: remove unused methods 2016-02-26 08:41:17 +00: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
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
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
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