Edgar
105b049497
Rename lock and semaphore classes to match current naming
2020-11-29 18:12:58 +01:00
Jupeyy
f83d528f5d
Fix vector constructor impl & remove useless operator
2020-11-20 12:14:33 +01:00
def
d99f1b9340
Allow utf8 ban reasons ( fixes #3329 )
2020-11-18 14:42:12 +01:00
def
7e0cbb5b09
Fix sizeof differently
2020-11-07 19:57:25 +01:00
def
bf8ae71b7d
Fix and NOLINT bugprone-sizeof-expression
2020-11-05 08:25:34 +01:00
def
1877943ceb
Fix bugprone-signed-char-misuse with tolower
2020-11-05 08:25:27 +01:00
bors[bot]
a03df3a4d1
Merge #3141
...
3141: More hours (fixes #3140 ) r=heinrich5991 a=def-
Will also look into #3140 and fix here.
Co-authored-by: def <dennis@felsin9.de>
2020-10-26 12:00:13 +00:00
Dennis Felsing
23c005144b
consistent formatting for dbg_msg
...
no capital letters, no spaces
2020-10-26 10:04:03 +01:00
def
4f44472e59
Add non-space blanks: Hangul Filler characters
...
Taken from https://en.wikipedia.org/wiki/Whitespace_character#Non-space_blanks
Had to Hangul Jungseong Filler to that Wiki article as it was missing.
2020-10-25 10:17:56 +01:00
def
8dfcd67fe6
Add str_time/str_time_float
...
Handles centisecs < 0
Uses int64, otherwise we're limited to ~260 days
2020-10-18 23:44:47 +02: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
87b06d307f
Fix clang-analyzer-core.UndefinedBinaryOperatorResult
...
/media/ddnet/src/game/client/animstate.cpp:54:27: warning: The left operand of '*' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
pSeq->m_X += pAdded->m_X * Amount;
^
2020-10-14 15:45:47 +02:00
def
5c1b8cd221
Fix clang-analyzer-deadcode.DeadStores
...
/media/ddnet/src/game/client/components/statboard.cpp:288:3: warning: Value stored to 'tw' is never read [clang-analyzer-deadcode.DeadStores]
2020-10-14 15:45:47 +02:00
def
469888e156
array: Don't allocate size 0
...
/media/ddnet/src/game/editor/auto_map.h:30:9: warning: Use of zero-allocated memory [clang-analyzer-cplusplus.NewDelete]
struct CIndexRule
^
2020-10-14 14:54:33 +02:00
def
476ac6951f
Fix memory leak in lock_create
...
/media/ddnet/src/base/system.c:805:3: warning: Potential leak of memory pointed to by 'lock' [clang-analyzer-unix.Malloc]
2020-10-14 14:54:33 +02:00
Jupeyy
9e8cbfea5d
Optimize uuid lookup
2020-10-11 08:39:29 +02:00
Jupeyy
52911e4302
Use std::sort instead of bubble_sort
2020-10-08 08:00:01 +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
0bac9f0de8
Manual preparation for cleaner clang-format
...
Also include what you use explicitly
2020-09-26 21:41:01 +02:00
Jupeyy
8235df7752
Add menu background map
2020-09-23 23:38:28 +02:00
Learath
bbdcb7035d
Style
2020-09-22 15:47:21 +03:00
Learath
586043fc64
Use fixed point conversion consistently
2020-09-22 15:29:16 +03:00
清歌
7ab35dc55e
fix localhost lookup problem when ws enable
2020-09-18 23:02:25 +08:00
清歌
059a2a0a35
fix websockets behavior in net_socket_read_wait
2020-09-18 21:28:17 +08:00
def
9717d032ff
Don't call atexit in forked process
2020-09-17 22:19:13 +02:00
QingGo
b64a0ef4c6
make client able to connect ws server with ws://
2020-09-13 09:59:10 +08:00
def
277040fc7c
shell_execute: handle some failures
2020-09-11 09:47:19 +02:00
def
f7b37eaf6a
clang-format fixes
2020-09-10 20:16:09 +02:00
def
0f051def21
Fix cbSize for Windows
2020-09-10 20:13:01 +02:00
def
90f3199d98
Implement opening server on Windows (reading autoexec_server.log not working yet)
2020-09-10 20:13:01 +02:00
def
2cdc7d0faf
Adapt 0.7 start menu
...
- Working Local Server button (needs fixing for Windows)
- Highlight buttons if server is running, new news is out and editor has
unsaved changes
2020-09-10 20:13:01 +02:00
bors[bot]
cbc272fd5d
Merge #2758 #2769 #2772
...
2758: Remove the rudimentary fuzzing since no one uses it anyway r=heinrich5991 a=def-
2769: Update front.png by Soreu r=heinrich5991 a=def-
2772: Dont predict camera position on spectator changed r=heinrich5991 a=BannZay
No reason to predict camera position in case when we just changed spectator.
But tbh I have not found a big reason to predict it at all.
Co-authored-by: def <dennis@felsin9.de>
Co-authored-by: Andrii <bannzay3@gmail.com>
2020-09-06 23:25:16 +00:00
bors[bot]
e3cfb23f28
Merge #2742 #2745
...
2742: Add str_utf8_copy that trim broken utf8 sequence at the end. r=heinrich5991 a=TsFreddie
Currently this replaces `str_copy` text input and clipboard paste in chat. Many places may need the same treatments, like steam names.
![image](https://user-images.githubusercontent.com/3797859/92263741-08b8e080-eed5-11ea-84a5-b7f070ded260.png )
Test string:
abcd今天是个好日子心想的事儿都能成今天是个好日子打开了家门咱迎春风今天是个好日子心想的事儿都能成今天是个好日子打开了家门咱迎春风今天是个好日子心想的事儿都能成今天是个好日子打
2745: Update mapres by mind r=heinrich5991 a=def-
Adapted from 0.7 for new renderer. Not sure if this makes sense :D
Co-authored-by: TsFreddie <tsfreddiewang@gmail.com>
Co-authored-by: def <dennis@felsin9.de>
2020-09-06 23:12:04 +00:00
TsFreddie
6b053936c7
str_utf8_copy using str_utf8_truncate
2020-09-06 20:58:26 +01:00
TsFreddie
badc49cac7
Revert "Revert & use "str_utf8_truncate" instead"
...
This reverts commit b045a3d6ee
.
2020-09-06 20:54:57 +01:00
Jupeyy
aed4293040
Prevent NULL pointer in mem_copy ( fixes #2753 )
2020-09-06 18:32:56 +02:00
def
b7da058b76
Remove the rudimentary fuzzing since no one uses it anyway
2020-09-05 23:50:31 +02:00
TsFreddie
b045a3d6ee
Revert & use "str_utf8_truncate" instead
2020-09-05 00:51:39 +01:00
TsFreddie
a3a363f665
C90
2020-09-04 17:48:18 +01:00
TsFreddie
92d08d07de
add str_utf8_copy
2020-09-04 17:34:27 +01:00
def
7781c8826e
Forbid some more whitespace and whitespace-like characters
...
Made sure everything from
https://en.wikipedia.org/wiki/Whitespace_character#Unicode is included
2020-08-26 16:43:47 +02:00
heinrich5991
3c6f05887f
Add SteamAPI + stub
2020-08-25 13:03:20 +02:00
yeojingkang
de6ea67663
Update math.h
2020-08-20 05:02:33 +08:00
yeojingkang
6e9c370eca
Added constexpr to math functions
2020-08-20 04:47:09 +08:00
def
539c20a200
Add support for PLATFORM_SUFFIX define
...
So that we can set it like this:
CXXFLAGS='-DPLATFORM_SUFFIX="steam"' CPPFLAGS='-DPLATFORM_SUFFIX="steam"' make
2020-08-19 13:41:06 +02:00
def
467778fc56
Satisfy old C standard
...
system.c:2325:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for(int cursor = 0, pos = 0; pos <= truncation_len && cursor < dst_size && size != cursor; cursor = str_utf8_forward(src, cursor), pos++)
2020-08-10 18:11:51 +02:00
Zwelf
81e5bb924c
Move sync_barrier to only used place
...
to remove `#include <windows.h>` from header file preventing compiling on windows
2020-08-09 18:17:42 +02:00
def
e2fde4d730
Fix utf8 handling in str_truncate ( fixes #2533 )
...
and rename to str_utf8_truncate since it's only used for utf8 strings
2020-08-02 18:32:42 +02:00
def
f4344dc420
Use (u)int64 from system.h instead of (u)int64_t from cstdint
...
src/game/client/prediction/gameworld.h:62:90: error: ‘int64_t’ has not been declared
62 | void CreateExplosion(vec2 Pos, int Owner, int Weapon, bool NoDamage, int ActivatedTeam, int64_t Mask);
| ^~~~~~~
2020-07-09 13:55:28 +02:00
3edcxzaq1
f30fe2b4b5
fix indentation
2020-06-29 23:07:57 +02:00