Dennis Felsing
d6999bb726
Merge "Pull Request using OpenGL 3.3"
2017-10-18 12:49:27 +02:00
Dennis Felsing
cc9bcb5b9f
Merge pull request #900 from Learath2/dd_pr_authname
...
Reset the username on disconnect
2017-10-18 12:43:08 +02:00
heinrich5991
dfc53b48cf
Fix victim handling
2017-10-17 01:32:40 +02:00
Learath
9ae2c16235
Allow changing UsernameReq while connected
2017-10-16 20:08:39 +02:00
Learath
81135d17de
Reset the username on disconnect
2017-10-16 20:01:33 +02:00
Jupeyy
5389dd9666
fix border amount for right and bottom border lines
2017-10-14 16:37:48 +02:00
heinrich5991
525b643e18
Fix a syntax error
...
Sorry. :/
2017-10-13 16:33:23 +02:00
heinrich5991
c439b04a2d
teehistorian: Hide chat from teehistorian
...
There was a missing check that allowed chat messages to be written to
disk.
2017-10-13 16:25:26 +02:00
Learath2
4394933d6c
Merge pull request #887 from heinrich5991/pr_ddnet_async
...
Add asynchronous output system and use it for teehistorian and `dbg_msg()`s
2017-10-13 15:30:24 +02:00
heinrich5991
e989ffad78
Rename async_*
to aio_*
and add test for nondivisible buffer lengths
2017-10-13 02:48:42 +02:00
heinrich5991
8e778cd9ab
Address pull request comments
2017-10-13 02:29:18 +02:00
Jupeyy
add339d210
not needed, because of restrictions before
2017-10-11 11:18:03 +02:00
Jupeyy
1814fa8d19
make OpenGL 3.3 experimental option, and don't initialize it as default
2017-10-10 15:35:20 +02:00
Jupeyy
4fc7187a14
adjust sprite texture coordinates to respect texel offset
2017-10-10 12:20:20 +02:00
Jupeyy
966b388b0e
clamp speedup arrows images
2017-10-10 12:08:36 +02:00
heinrich5991
4d05a2379b
Make teehistorian asynchronous
2017-10-10 04:11:14 +02:00
heinrich5991
be0b52eddc
Fix teehistorian crash on startup
2017-10-10 02:39:29 +02:00
Learath2
d15dcd3c58
Merge pull request #871 from heinrich5991/ddnet_teehistorian
...
Teehistorian
2017-10-09 18:42:27 +02:00
Jupeyy
92edbf4d37
allow viewing average or current fps
2017-10-09 15:58:12 +02:00
heinrich5991
f16059c0b8
teehistorian: Add a couple of tests, fix uninitialized vars and asserts
2017-09-28 02:42:35 +02:00
heinrich5991
f43480aeed
Add testing infrastructure for teehistorian
2017-09-28 02:03:30 +02:00
heinrich5991
1913106f15
teehistorian: Fix a bug with implicit ticks
2017-09-27 20:15:41 +02:00
heinrich5991
be79f14e38
teehistorian: Use m_pController->m_pGameType
directly
2017-09-27 19:38:54 +02:00
Jupeyy
baa69676ea
fix warnings
2017-09-27 15:06:47 +02:00
Jupeyy
7aa547946b
more warning fixes
2017-09-27 15:01:38 +02:00
Jupeyy
463944b143
fix code pattern mistakes and warnings
2017-09-27 14:52:06 +02:00
Jupeyy
e820a36899
don't use average FPS
2017-09-27 12:21:29 +02:00
Jupeyy
6185c05be4
for tilelayers, go thorugh them layer by layer to reduce GPU overload by
...
only render visible areas
2017-09-27 12:20:23 +02:00
Jupeyy
9fd1290734
auto adjust font size for entity overlay
2017-09-27 12:19:39 +02:00
Dennis Felsing
5b05e558dc
Fix grammar (thanks noby)
2017-09-25 09:07:12 +02:00
heinrich5991
9d5ba770e9
teehistorian: Only record non-default config vars
2017-09-24 21:11:04 +02:00
def
b7f4ab4d80
Move comment
2017-09-23 22:49:01 +02:00
heinrich5991
3efa490cb7
teehistorian: Remove global buffer
...
This removes the possibility of the buffer filling up and discarding
data.
2017-09-20 02:23:28 +02:00
heinrich5991
9761e9606a
Make most user input teehistoric
...
Exclude private stuff like chat messages and votes.
2017-09-20 02:23:28 +02:00
heinrich5991
6ef9c8dbcd
First working version of teehistorian
...
teehistorian records all inputs from the players as well as the player
positions in each tick. It stores this info in a highly compressible
output format (I've achived 5x compression using xz or bz2).
2017-09-20 02:16:11 +02:00
def
03fa475b5e
Implement /pause [name] and /spec [name]
2017-09-18 19:12:01 +02:00
Redix
43f246f174
Made int packing functions safe
2017-09-17 02:36:50 +02:00
heinrich5991
42934fe102
Remove statically detectable float divisions by zero
...
This should fix the warning in MSVS.
2017-09-16 18:34:26 +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
Dennis Felsing
43d0299a45
Merge branch 'master' into pr_ddnet_fix_msvs_warnings
2017-09-16 11:17:39 +02:00
Jupeyy
fc706a820c
only check gametiles for DDNet server type
2017-09-16 03:45:24 +02:00
Jupeyy
31844d3353
set max width for custom text texture upload and fixing alignments for
...
texture updates
2017-09-15 03:01:26 +02:00
Jupeyy
5c7c09d380
fixing most wrong code pattern
2017-09-13 20:33:58 +02:00
Jupeyy
fd83d2834d
dont draw layer if our view is out of the layers range
2017-09-12 23:16:01 +02:00
Jupeyy
c437b5bb89
use 64 bit variable
2017-09-12 21:06:12 +02:00
Jupeyy
629bf2c5f9
Merge branch 'master' of https://github.com/ddnet/ddnet
2017-09-12 20:24:58 +02:00
Jupeyy
0caa70f0a1
support buffering of tile layers, draw them with the buffer objects and
...
some optimazations to border drawing
2017-09-12 20:22:18 +02:00
Jupeyy
9d2a625363
create overlay textures for entity overlays, instead of rendering glyphs
2017-09-12 20:15:37 +02:00
Jupeyy
6dc4d1e578
only allow a maximal zoom factor to make sure no bufferoverflow happens
2017-09-12 20:14:34 +02:00