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
3edcxzaq1
1be3b7ead5
Suppress open_link output
2020-06-29 21:34:07 +02:00
heinrich5991
741c3a705e
Revert "Fix str_format on mingw"
...
This reverts commit a9f6d3716c
.
2020-06-29 13:48:51 +02:00
def
a9f6d3716c
Fix str_format on mingw
...
src/game/server/ddracecommands.cpp:743:39: warning: unknown conversion type character ‘l’ in format [-Wformat=]
743 | str_format(aBuf, sizeof(aBuf), "%s-%lld-%s.save", pSelf->Server()->GetMapName(), time_get(), pSelf->Server()->GetAuthName(pResult->m_ClientID));
See https://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/
2020-06-22 14:47:40 +02:00
def
70b8bf9497
Open links in background ( fixes #2292 )
...
Only tested on Linux
2020-06-20 14:59:36 +02:00
bors[bot]
4edac3143a
Merge #2281
...
2281: Add Learn button which opens the ddnet wiki in the browser. r=heinrich5991 a=edg-l
![image](https://user-images.githubusercontent.com/15859336/85147350-05f00d00-b24f-11ea-8b6c-f79dbf605747.png )
## **I didn't test it on windows or mac.**
Co-authored-by: Edgar <git@edgarluque.com>
2020-06-20 12:00:45 +00:00
Edgar
07f0239e01
Add Learn button which opens the ddnet wiki in the browser.
2020-06-20 13:56:02 +02:00
Learath
75e96aa5d3
Get rid of more magic constants, adapt to 0.7
2020-06-19 21:48:48 +03:00
Learath
d200ef0bb0
Remove ugly hack
2020-06-19 21:42:19 +03:00
Learath
9e2434c65d
Better skin colors. Better game message translation
2020-06-19 20:28:55 +03:00
def
a951845083
Surprise: void x(); accepts any parameter in C!
...
Prevents accidentally passing parameters that would then be ignored.
C++ is more reasonable, so nothing to do there.
2020-04-12 20:06:38 +02:00
def
4c00e4533c
Fix type of os_is_winxp_or_lower function ( fixes #2135 )
2020-04-12 10:23:08 +02:00
Learath
ce8987cd43
Missing include
2020-02-27 16:56:40 +03:00
Learath
f679fbfbc5
Allow editing multiple tile layer props
2020-02-27 16:53:12 +03:00
def
598ec52892
Fix GCC 9.2.0 compilation
...
src/game/server/ddracechat.cpp:623:39: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
2020-02-05 08:22:04 +01:00
heinrich5991
8c4569991d
Fix indentation and formatting of str_clean_whitespaces
...
(cherry picked from commit b9c4086382
)
2020-01-19 22:38:08 +01:00
KillaBilla
75d076b3bc
changed str_clean_whitespace implementation to pkoerner's one
...
(cherry picked from commit a9cc1e8de2
)
2020-01-19 22:37:57 +01:00
KillaBilla
ba1abac52f
remove leading and trailing space from server name and forbit the use of multiple spaces
...
(cherry picked from commit a9cc1e8de2
)
2020-01-19 22:28:19 +01:00
Dennis Felsing
ba3b436139
Fix Websockets warning
2019-12-30 10:12:16 +01:00
Dennis Felsing
a27358806c
Revert "Support shotgun_speed 0"
...
This reverts commit 9d39ca888f
.
2019-12-09 14:59:10 +01:00
bors[bot]
c31f6303cf
Merge #1977
...
1977: Support shotgun_speed 0 r=Learath2 a=def-
for mapping stationary bullets
As requested by Im 'corneum.
Co-authored-by: def <dennis@felsin9.de>
2019-12-04 16:48:06 +00:00
Dennis Felsing
37ef24225e
Clean up color handling a bit
...
- SetAlpha should be called WithAlpha and only works for RGBA
- Fix type correctness of color_scale and introduce color_invert
- Nicer hook coll color handling in RenderPlayer
- Use CRTP to have type safe WithAlpha, otherwise this would compile:
ColorHSLA = WithAlpha(ColorRGBA(1.0f, 1.0f, 1.0f));
2019-12-03 11:32:55 +01:00
def
9d39ca888f
Support shotgun_speed 0
...
for mapping stationary bullets
2019-11-27 18:29:39 +01:00
Learath
37d9e4fa26
Add a saner way to select angles. Close #1916
2019-09-20 23:57:35 +03:00
heinrich5991
c8198cc853
Annotate str_timestamp_format
with format arguments
2019-07-14 15:42:16 +02:00
Learath2
1993989067
Fix toggle not working with colors
2019-07-02 14:54:06 +02:00
heinrich5991
b90dd43118
Fix -Wdeprecated-copy from GCC9
2019-06-26 11:53:39 +02:00
Learath
db5c17ce71
Avoid implementation-defined behaviour
2019-05-15 18:11:22 +02:00