Alexander Akulich
33dc79d190
Character: Make the GameController set the Teleports info
...
CCharacter::HandleTiles() doesn't depend on the CGameControllerDDRace anymore.
2021-01-19 22:36:03 +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
c9a1586dec
Fix obvious division by zero
2020-10-17 18:24:34 +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
def
557f23b347
Disable -Wstringop-overflow warning in IntsToStr
...
Since it won't write into invalid memory when Num > 0
2020-06-23 10:35:41 +02:00
heinrich5991
9075bc452d
Add a comment justifying the modulo for random numbers
2020-05-27 18:12:42 +02:00
heinrich5991
c9c7f947b5
Use the PCG-XSH-RR PRNG instead
...
This came from a long discussion comparing PCG-* against xoroshiro*. Do
not generate integers without bias because it doesn't affect us very
much and it is easier to reimplement with modulo.
2020-05-26 10:59:49 +02:00
heinrich5991
2692f3c758
Use a consistent PRNG on all platforms
2020-05-25 15:19:29 +02:00
trml
47cafe6d6b
Remove unused code
2020-05-02 18:52:09 +02:00
ChillerDragon
96c9b1ab73
Rename rifle to laser
...
This makes it easier to copy code from/to 0.7
23df3c609e
2019-11-22 15:37:18 +01:00
Dennis Felsing
ae4f632bbd
Disable warning for false positive
2019-10-16 14:33:58 +02:00
heinrich5991
9a5de9eff8
Remove unused variables
2019-10-02 10:28:34 +02:00
heinrich5991
bcd1559c5e
Make LimitVel
a proper function
2019-09-18 14:50:27 +02:00
heinrich5991
66ccd808aa
Rewrite stopper code a bit, second try
...
Remove the whole copy-and-paste mess.
A seemingly ineffective and apparently code block has been removed.
The broken front layer from the first try has been fixed.
2019-09-18 02:04:46 +02:00
trml
b72a16ca36
Use new ddnetchar fields, cleanup, and fix prediction for already used jumps
2019-07-01 00:50:50 +02:00
bors[bot]
a5096c4de0
Merge #1663
...
1663: Use freeze end tick instead of a flag. Fix #1659 r=def- a=Learath2
I used -1 for deep frozen, and 0 for not frozen. Not really sure if this is the best way.
Co-authored-by: Learath <learath2@gmail.com>
2019-04-27 08:53:38 +00:00
Learath
24408e6f3c
Oops
2019-04-24 19:12:46 +03:00
Learath
67668d7fb2
Use freeze end tick instead of a flag. Fix #1659
2019-04-23 18:57:26 +03:00
trml
0b3f3b03b5
Rewrite of prediction code, with additional prediction
2019-04-21 16:12:20 +02:00
Ryozuki
f37f8a8268
add all character flags to ddnetnetwork character
2019-04-19 11:17:28 +02:00
Ryozuki
3556830b9a
fix solo prediction
2019-04-12 16:29:13 +02:00
Dennis Felsing
13aa154d47
Revert "Rewrite stopper code a bit"
...
This reverts commit 4ee5c5a781
.
2018-08-24 09:34:54 +02:00
Dennis Felsing
d60b0db632
Revert "Add mapbug "stoppers-passthrough@ddnet.tw""
...
This reverts commit 25e86851d3
.
2018-08-22 08:33:21 +02:00
heinrich5991
25e86851d3
Add mapbug "stoppers-passthrough@ddnet.tw"
...
This can be set for maps that rely on actually passing through stoppers.
2018-08-16 17:54:55 +02:00
heinrich5991
4ee5c5a781
Rewrite stopper code a bit
...
Remove the whole copy-and-paste mess.
A seemingly ineffective and apparently code block has been removed.
2018-08-15 17:47:07 +02:00
heinrich5991
9911759314
Revert "Don't divide by 0"
...
This reverts commit 03faa51e28
.
Dividing floats by zero isn't undefined behavior and results in +inf or
-inf depending on the sign of the first operand.
#include <math.h>
#include <stdio.h>
#define PRINT(x) printf("%s = %f\n", #x, x)
int main()
{
PRINT(1.0 / 0.0);
PRINT(-1.0 / 0.0);
PRINT(atanf(1.0 / 0.0));
PRINT(atanf(-1.0 / 0.0));
return 0;
}
prints
1.0 / 0.0 = inf
-1.0 / 0.0 = -inf
atanf(1.0 / 0.0) = 1.570796
atanf(-1.0 / 0.0) = -1.570796
The changed function was problematic for values like (0,1), (-1,0),
(0,-1) where it always returned an angle of 0°.
2017-09-16 18:33:10 +02:00
def
03faa51e28
Don't divide by 0
2017-09-16 12:06:07 +02:00
eeeee
2797227063
also remove references to CGameContext from CServer
2017-06-05 22:31:56 -07:00
necropotame
b8e4e5beea
Fix style in several places
2017-03-22 19:45:14 +01:00
def
3fb7b1520e
Add descriptions for tunings
2015-03-29 03:52:33 +02:00
def
66be23c5d5
Remove unused members
2014-12-29 02:21:10 +01:00
nuborn
9752334e75
convert projectiles back to default format before recording demos
2014-12-01 01:32:51 +01:00
nuborn
03bc769c09
prediction of hammer (hits) and grenade (explosions)
2014-12-01 01:31:58 +01:00
def
627d6386ee
Revert "Revert "Revert "Add antiping for weapons (by nuborn)"""
...
This reverts commit 8f7e24b4db
.
2014-11-02 10:59:22 +01:00
nuborn
8f7e24b4db
Revert "Revert "Add antiping for weapons (by nuborn)""
...
This reverts commit 755e9f4d1c
.
2014-10-28 15:50:28 +01:00
def
755e9f4d1c
Revert "Add antiping for weapons (by nuborn)"
...
This reverts commit 48e66a2ab3
.
Conflicts:
src/game/client/gameclient.cpp
src/game/version.h
2014-10-27 20:03:22 +01:00
def
48e66a2ab3
Add antiping for weapons (by nuborn)
2014-10-23 17:31:29 +02:00
def
dcf5e244b5
Fix walljump after holding a key
2014-06-23 14:46:27 +02:00
def
99c74b5311
Fix wall jumps
2014-06-22 00:50:11 +02:00
def
b3e9041768
Revert "Same hook strength for everyone (by cinaera)"
...
This reverts commit 2b08464527
.
2014-05-01 03:03:31 +02:00
def
2b08464527
Same hook strength for everyone (by cinaera)
2014-04-30 17:36:25 +02:00
def
5eb7a74558
Fix: Tunings and Tunezones with dummies
2014-04-29 03:34:23 +02:00
def
68980e7699
Fix: Ok, proper Jetpack prediction now
2014-04-14 10:56:14 +02:00
def
a4580c4af0
Add speedup prediction (by c)
2014-03-25 01:13:46 +01:00
HMH
b25307ba5f
set CCharacter as a friend of CCharacterCore to correct tunings
2014-03-23 17:10:49 +01:00
def
72bc639a0c
TeleOuts as pointer; Hopefully fixes Visual Studio crash
2013-12-12 14:35:01 +01:00
def
6da8d2146c
New mapping entity: Specify number of jumps
2013-08-24 01:03:45 +02:00
def
40ff09be29
Revert visual studio fix
2013-08-18 22:19:02 +02:00
BeaR
ee6192900c
fix previous commit
2013-08-14 19:56:55 +02:00
def
af69765063
Revert "fix visual studio build"
...
This reverts commit 62409f740a
.
2013-08-14 17:31:15 +02:00