phosit
ae7801c9c7
Remove u64
...
It's better to use types from the standard library.
2026-09-21 18:11:38 +02:00
phosit
6a0c8c1a5a
Remove u32
...
It's better to use types from the standard library.
2026-09-21 18:11:31 +02:00
phosit
00ee825374
Remove u8
...
It's better to use types from the standard library.
2026-09-21 18:11:14 +02:00
phosit
3e7263f0db
Remove i32
...
It's better to use types from the standard library.
2026-09-21 18:10:39 +02:00
Ralph Sennhauser
2e13192479
Fix deleting last node in spline
...
The last node needs to have distance "0" to next node. Do the inverse of
when adding nodes.
Also add some basic tests covering this bug.
Fixes : #4659
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com >
2026-09-03 10:49:52 +02:00
Ralph Sennhauser
0c0552a428
Replace M_PI with C++ numbers
...
C++20 added π (pi) to the standard, replace the C macro globally.
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com >
2026-06-04 20:29:48 +02:00
Ralph Sennhauser
7dece41990
Fix includes in source/lib
...
Make include-what-you-use happy with some files in source/lib and fix
what needs to be fixed.
Ref: #8086
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com >
2025-08-03 10:15:37 +02:00
Ralph Sennhauser
6f2f8c13bf
Replace boost::mt19937 with std::mt19937
...
Available since C++11 and already used in the codebase.
Ref: #8210
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com >
2025-07-19 10:46:02 +02:00
Ralph Sennhauser
ed4e2587c2
Fix includes in source/maths
...
Make include-what-you-use happy with files in source/maths and fix what
needs to be fixed.
Ref: #8086
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com >
2025-07-06 18:24:31 +02:00
Ralph Sennhauser
ead62bba78
Update trac links with gitea links
...
This replaces all links pointing to trac with their corresponding links
to gitea. Also replace http with https while at it.
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com >
2024-12-10 11:29:48 +01:00
Stan
bd5f8392be
Make CMatrix3D::operator*= behave as expected.
2024-10-08 16:04:22 +02:00
vladislavbelov
ffc4a56b9f
Revert non-ASCII characters from source and configuration files introduced in 157c6af18e.
...
Fixes #6846
Differential Revision: https://code.wildfiregames.com/D5185
This was SVN commit r27965.
2023-12-03 00:30:12 +00:00
bb
157c6af18e
Make the space in 0 A.D. non-breaking throughout the codebase.
...
Avoid cases of filenames
Update years in terms and other legal(ish) documents
Don't update years in license headers, since change is not meaningful
Will add linter rule in seperate commit
Happy recompiling everyone!
Original Patch By: Nescio
Comment By: Gallaecio
Differential Revision: D2620
This was SVN commit r27786.
2023-07-27 20:54:46 +00:00
wraitii
0779c64052
Add tests for fixed::FromFraction
...
Differential Revision: https://code.wildfiregames.com/D4458
This was SVN commit r26273.
2022-01-30 12:57:08 +00:00
vladislavbelov
809e3ed0bd
Removes rand function usage from tests to avoid non-uniform distributions.
...
This was SVN commit r26012.
2021-11-25 17:57:59 +00:00
Stan
d599a86b3e
Disable the false positive "mod by 0" warning on Windows.
...
Differential Revision: https://code.wildfiregames.com/D4259
This was SVN commit r25906.
2021-09-09 17:49:07 +00:00
vladislavbelov
44f8d2c6f5
Fixes a bounding box projection to an incorrect camera causes the red water bug.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D3905
This was SVN commit r25440.
2021-05-15 13:33:36 +00:00
vladislavbelov
c56c856ed5
Moves Frustum from graphics to maths to more related geometric primitives like bounding ones.
...
This was SVN commit r25159.
2021-03-29 17:28:13 +00:00
elexis
0dff6940f7
Implement a FixedVector2D::CompareLengthSquared function to provide a more performant alternative to CompareLength.
...
Avoids computing the square of the compared value every call.
Differential Revision: https://code.wildfiregames.com/D2058
Reviewed By: Vladislav
This was SVN commit r23489.
2020-02-09 21:00:43 +00:00
vladislavbelov
d1fb66d2a7
Cleanups BoundingBoxAxisAligned and fixes coding styles a bit.
...
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D1951
This was SVN commit r22372.
2019-06-12 20:23:14 +00:00
Stan
fd719833ab
Replace includes uniform_foo with uniform_foo_distribution as it's deprecated in newer versions of boost. It was added in the 1.47 version.
...
Reviewed by: @Angen, @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D1823
This was SVN commit r22211.
2019-04-22 21:45:23 +00:00
Stan
4edcf21b98
Remove useless class, test class and use boost instead of it in test_RangeManager.h. Use boost::random::uniform_real_distribution<double> instead of deprecated boost::uniform_real<> in that class as well.
...
Refs #5428
Reviewed by: @Angen, @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D1584
This was SVN commit r22175.
2019-04-09 21:50:10 +00:00
vladislavbelov
cb83d494e0
Refactor CBoundingSphere and add tests
...
Reviewed By: wraitii
Comments By: smiley, Stan
Differential Revision: https://code.wildfiregames.com/D1576
This was SVN commit r22143.
2019-03-25 21:17:43 +00:00
elexis
ecce63628c
Unify duplicate u8* to hex string functions in a new Hexify function variant, similar to bb1f86f515, used by Tests, CacheLoader, Terms and Conditions, Lobby and mod.io.
...
Removes the call to the sprintf_s function from test_MD5.h in 17718981cf
and JSInterface_Main.cpp in 468d963e78 .
As reported by Vladislav that function might not null-terminate strings
on untested/newer platforms, but the caller requires it here.
The sprintf_s calls in other places have the same problem.
Differential Revision: https://code.wildfiregames.com/D1591
Accepted By: Vladislav
This was SVN commit r21863.
2018-08-08 12:59:05 +00:00
elexis
b18f74da44
Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/.
...
This was SVN commit r18987.
2016-11-23 11:18:37 +00:00
Ykkrosh
72e11a2dea
Fix VS2013 build errors, warnings
...
This was SVN commit r14073.
2013-11-03 12:46:07 +00:00
vts
1c005b0c0e
Fixed AABB to OBB transformation resulting in NaN basis vectors when the AABB size in one or more dimensions is zero. Fixes #1121 .
...
This was SVN commit r11928.
2012-05-31 23:17:15 +00:00
Ykkrosh
769350a3e7
Compute camera height and zoom limits based on smoothed terrain heightmap. Fixes #794 , based on patch by Dietger.
...
This was SVN commit r11556.
2012-04-18 20:39:00 +00:00
vts
305723f9a7
Prevent AABB/frustum intersections from blowing up on empty input bounds. Fixes #1027 .
...
This was SVN commit r11441.
2012-04-05 22:29:01 +00:00
Ykkrosh
0ec4242962
Detect and fix printf signedness errors. Fixes #1086 , #1087 .
...
This was SVN commit r10846.
2012-01-01 16:43:10 +00:00
vts
85186c98b2
Better selection boxes. Closes #914 , #295 , #810 .
...
This was SVN commit r10593.
2011-11-25 06:36:13 +00:00
Ykkrosh
2d662a1228
Add WELL512 RNG
...
This was SVN commit r9955.
2011-08-02 22:58:10 +00:00
Ykkrosh
b2837e2878
Fix compatibility more with Boost 1.47
...
This was SVN commit r9907.
2011-07-24 11:59:57 +00:00
Ykkrosh
c82d619cc4
Make decals only rotate around the Y axis, to avoid buggy stretched appearance when rotated non-horizontally
...
This was SVN commit r9298.
2011-04-22 13:19:23 +00:00
Ykkrosh
012c47057a
Optimise some matrix operations, based on patch from ortalo.
...
Fixes #750 .
This was SVN commit r9141.
2011-04-01 18:33:47 +00:00
Ykkrosh
924d1219a7
# Add fog-of-war.
...
Move Vision component to C++, for more efficient FoW processing.
Disable FoW on demo maps.
This was SVN commit r8160.
2010-09-23 12:13:13 +00:00
Ykkrosh
3d8d354a18
# Optimise spatial queries.
...
This was SVN commit r8136.
2010-09-19 18:08:56 +00:00
Ykkrosh
65bcedb9fc
Load map descriptions from their XML file.
...
Add basic hold-fire stance, and use it for some test maps.
Add JSON data container to map XML files, to simplify the interaction
between scripts and maps.
Fix fixed-point printing so it roundtrips safely through map files.
Fix camera startup positions in old-format maps.
This was SVN commit r7844.
2010-08-04 21:15:41 +00:00
Ykkrosh
e8b264835a
Add fixed-point sin/cos, to fix OOS errors
...
This was SVN commit r7690.
2010-07-04 17:15:57 +00:00
Ykkrosh
5b51ecacac
Fix fixed parser
...
This was SVN commit r7587.
2010-05-25 21:57:16 +00:00
Ykkrosh
57b7822539
Add a rough fixed-point parser, to fix OOS problems when loading maps
...
This was SVN commit r7570.
2010-05-22 16:59:15 +00:00
Ykkrosh
2f421082cd
Improve accuracy of fixed sqrt
...
This was SVN commit r7561.
2010-05-21 15:26:17 +00:00
Ykkrosh
4981af4a57
OS X build/warning/test fixes
...
This was SVN commit r7512.
2010-05-07 20:55:23 +00:00
Ykkrosh
f33706bf8b
Switch everything to 15.16-bit precision fixeds, to allow more accurate unit vectors and angles.
...
This was SVN commit r7497.
2010-05-02 20:32:37 +00:00
Ykkrosh
e0ed8a1629
# Pathfinder updates
...
More hacks so units follow paths relatively smoothly, and to avoid
pathfinding in simple situations
This was SVN commit r7296.
2010-01-30 13:11:58 +00:00
Ykkrosh
7e625d7b21
Fix build error, test-case bug
...
This was SVN commit r7270.
2010-01-10 19:44:56 +00:00
Ykkrosh
17718981cf
Remove Crypto++ because it causes too much trouble. Replace with a custom MD5 implementation for simulation state hashing.
...
This was SVN commit r7269.
2010-01-10 19:29:27 +00:00
Ykkrosh
7c2e9027c2
# Rewrite of the game's simulation system
...
Giant merge from
http://svn.wildfiregames.com/hg-source/file/5fb522019d5e
Infrastructure is largely complete, gameplay is largely missing
Disabled by default; use command-line flag "-sim2"
(Second attempt at commit...)
This was SVN commit r7259.
2010-01-09 19:20:14 +00:00
Ykkrosh
c9fa7f13d9
Add GPL header
...
This was SVN commit r6830.
2009-04-18 17:00:33 +00:00
Ykkrosh
1e3cd00c72
Set svn:eol-style=native
...
This was SVN commit r6816.
2009-04-11 17:00:39 +00:00