Chairn
27da8391dc
Replace 2 floats array with vec2 where it makes sense
2022-07-06 11:39:43 +02:00
Alexander Akulich
a5f4c66fd5
vmath: Make vector2_base() constructors constexpr
2022-05-28 20:58:22 +03:00
Dennis Felsing
68bcd21eff
asan+ubsan clean
2022-05-26 01:22:14 +02:00
c0d3d3v
ab37f95bb4
Do not clip players with hook in the field of view
2022-05-22 21:59:48 +02:00
c0d3d3v
0a6902acae
Optimization of the closest_point_on_line function
2022-05-22 21:59:44 +02:00
def
c4377bb7d9
Always initialize vec2/3/4
...
Because no tools can detect it uninitialized well, tried Memory
Sanitizer (needs all libs including libc++ compiled with it), valgrind
(only detects in LTO build), compiler warnings. Might be related to
unions.
2022-05-22 12:18:32 +02:00
Chairn
6086893fa6
Renamed all shadowing/shadowed variables
2022-03-24 17:59:49 +01:00
Alexander Akulich
5d0bb4cf3c
Backport vector functions cleanup from the upstream
...
Keep closest_point_on_line() as-is.
(commit 6b69f94dc8
)
2021-01-16 03:20:57 +03:00
BeaR
9f0b0af862
Add angle<->direction conversion functions to vector math (Cleanup)
...
Keep angle() (ex. GetAngle()) as-is.
(cherry picked from commit 7735557aa5
)
2021-01-16 03:20:57 +03:00
Jupeyy
f83d528f5d
Fix vector constructor impl & remove useless operator
2020-11-20 12:14:33 +01:00
Jupeyy
3aef2ebfe0
Make closest_point_on_line safer
...
Does not change behaviour, all NaNs resulted in false checks
2020-10-17 20:22:13 +02:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
Jupeyy
8235df7752
Add menu background map
2020-09-23 23:38:28 +02:00
Dennis Felsing
a27358806c
Revert "Support shotgun_speed 0"
...
This reverts commit 9d39ca888f
.
2019-12-09 14:59:10 +01:00
def
9d39ca888f
Support shotgun_speed 0
...
for mapping stationary bullets
2019-11-27 18:29:39 +01:00
heinrich5991
b90dd43118
Fix -Wdeprecated-copy from GCC9
2019-06-26 11:53:39 +02:00
Learath
95a3a69e08
Start phasing out vectors for colors
2019-04-25 18:21:35 +03:00
trml
0b3f3b03b5
Rewrite of prediction code, with additional prediction
2019-04-21 16:12:20 +02:00
heinrich5991
f7dde1e061
Partially revert #681
...
The refactoring can cause a gameplay change, laws of associativity like
`x * (1 / z) == (x * 1) / z` don't hold for floating point numbers.
2017-03-16 10:19:08 +01:00
Ryozuki
d0c317d7c7
Fix a typo and refactor the normalize function
2017-03-16 07:55:49 +01:00
oy
893964848e
fixed wrong types within vector constructors. Closes #1371
2015-08-22 21:49:11 +02:00
def
8a6e115b13
Add != for vectors ( fixes #202 )
2015-04-28 19:02:13 +02:00
oy
7d2df3a386
added some vector operators
2012-01-09 00:38:20 +01:00
oy
06115dd49d
added "Whitespace and line Endings cleanup" by GreYFoX
2011-04-13 20:37:12 +02:00
Sworddragon
fc9211c777
Updated copyrights
2010-11-20 21:26:06 +01:00
Magnus Auvinen
575f72d978
fixed some compiler errors and warnings with clang
2010-07-05 20:57:07 +02:00
Magnus Auvinen
72c06a2589
copied refactor to trunk
2010-05-29 07:25:38 +00:00