Commit graph

10986 commits

Author SHA1 Message Date
bors[bot] 5ac6c3bac9
Merge #2803
2803: Always accept the local server name for saves r=def- a=heinrich5991



Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-09-11 06:37:27 +00:00
heinrich5991 35228fb997 Always accept the local server name for saves 2020-09-11 06:10:53 +02:00
bors[bot] f6e1ed5f19
Merge #2738
2738: Don't search the sorted array linearly r=heinrich5991 a=Learath2

Small optimization but it could start mattering with #2733

Co-authored-by: Learath <learath2@gmail.com>
2020-09-10 22:30:46 +00:00
bors[bot] 51483c2ff1
Merge #2789 #2797
2789: Refresh server browser immediately when updated ddnet info arrived r=heinrich5991 a=def-

At the moment it only happens the next time you press refresh.

Before we had it so that it always reloaded once the ddnet info arrived,
causing a quick flickering and lots of packets having to be resent every
time someone pressed refresh, even if nothing changed.

The new approach combines the advantages of both without the
disadvantages. An even nicer way would be to compare the json objects,
so that news and version updates don't matter, but our json library
doesn't seem to support that.

2797: dilate: Don't crash if file doesn't exist r=heinrich5991 a=def-



Co-authored-by: def <dennis@felsin9.de>
2020-09-10 22:24:06 +00:00
bors[bot] 4abd889802
Merge #2799
2799: Use check_header_guards script r=heinrich5991 a=def-



Co-authored-by: def <dennis@felsin9.de>
2020-09-10 22:06:32 +00:00
def d92e6ecb00 Use check_header_guards script 2020-09-11 00:03:31 +02:00
bors[bot] fe0032451b
Merge #2796
2796: Remove tools we don't need anymore r=heinrich5991 a=def-

Following Jupeyys new renderer

Co-authored-by: def <dennis@felsin9.de>
2020-09-10 21:25:34 +00:00
def 80b7ceb3d7 dilate: Don't crash if file doesn't exist 2020-09-10 23:25:33 +02:00
bors[bot] 250b241fe3
Merge #2790
2790: Fixes two mapres by mind r=heinrich5991 a=def-

- Two missed dilate
- Two others forgot to delete white text markings

Co-authored-by: def <dennis@felsin9.de>
2020-09-10 21:16:19 +00:00
def c839dc96d9 Remove tools we don't need anymore
Following Jupeyys new renderer
2020-09-10 23:15:28 +02:00
bors[bot] 10eaa585e3
Merge #2794
2794: Make fix_style executable r=heinrich5991 a=def-



Co-authored-by: def <dennis@felsin9.de>
2020-09-10 21:08:57 +00:00
def ecdf648930 Make fix_style executable 2020-09-10 22:58:30 +02:00
bors[bot] a4025a37d4
Merge #2770
2770: Print sqlite statements r=def- a=Zwelf

This prints SQLite statements to the console. I tried to expand MySQL statements with the SQLite function as well, but this didn't work since it isn't valid SQLite syntax.

Co-authored-by: Zwelf <zwelf@strct.cc>
2020-09-10 18:50:19 +00:00
Zwelf 3a986fbe52 Fix SQL query style using clang-format 2020-09-10 20:24:34 +02:00
Zwelf a78e84d724 Only call sqlite3_expanded_sql when it exists
Only print expanded SQLite statement, when expanding function exists. This is
required to not bump the minimum required Ubuntu version, since Ubuntu 16.04
doesn't ship SQLite 3.14 or above. SQLite introduced ``sqlite3_expanded_sql`
in 3.14, Ubuntu 16.04 packages 3.11.

Disabled weak linking on MSVC, since it isn't supported.
2020-09-10 20:22:37 +02:00
Zwelf 88dc1c1a9c Add print functionality to SQLite 2020-09-10 20:16:42 +02:00
Zwelf 46b0ff354e Align InsertIgnore with other SQL query related functions 2020-09-10 20:16:42 +02:00
bors[bot] d1aa014357
Merge #2793
2793: Add some more space for Countries & Types r=Learath2 a=def-

Since DDNet has too many locations now. A scroll wheel would be even better for the future if someone wants to implement that.

![screenshot-20200910@175801](https://user-images.githubusercontent.com/2335377/92758709-4ca55d00-f38f-11ea-924d-f13b998403f7.png)

Co-authored-by: def <dennis@felsin9.de>
2020-09-10 16:52:55 +00:00
bors[bot] 64be7d7a10
Merge #2791
2791: Add .clang-format; require it for pull requests r=def- a=heinrich5991

This will help me not getting annoyed about code style.

Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-09-10 16:00:19 +00:00
def cddfd6836b Add some more space for Countries & Types
Since DDNet has too many locations now
2020-09-10 17:59:40 +02:00
heinrich5991 0a2eab6a10 CI: Check style on pull requests 2020-09-10 04:11:58 +02:00
heinrich5991 df46ff8557 Add a tools to fix the style of new pull requests 2020-09-10 04:11:58 +02:00
heinrich5991 fcac1503d5 Add .clang-format
This will help me not getting annoyed about code style.
2020-09-10 04:11:58 +02:00
Learath 1f261198a7 Don't search the sorted array linearly 2020-09-09 21:10:40 +03:00
def 35c711fb84 Fixes two mapres by mind
- Two missed dilate
- Two others forgot to delete white text markings
2020-09-09 18:34:59 +02:00
def 279deffa86 Refresh server browser immediately when updated ddnet info arrived
At the moment it only happens the next time you press refresh.

Before we had it so that it always reloaded once the ddnet info arrived,
causing a quick flickering and lots of packets having to be resent every
time someone pressed refresh, even if nothing changed.

The new approach combines the advantages of both without the
disadvantages. An even nicer way would be to compare the json objects,
so that news and version updates don't matter, but our json library
doesn't seem to support that.
2020-09-09 17:51:32 +02:00
bors[bot] f3372b185e
Merge #2787
2787: Put dependencies before installation instructions in README r=heinrich5991 a=def-

as noticed by Андрей Рудой on Discord

Co-authored-by: def <dennis@felsin9.de>
2020-09-09 15:13:04 +00:00
def cf4cf80ca6 Put dependencies before installation instructions in README
as noticed by Андрей Рудой on Discord
2020-09-09 17:07:05 +02:00
bors[bot] ca100ba4a8
Merge #2781
2781: Fix some 5:4 rendering in demo menu & recorder menu r=heinrich5991 a=def-

![screenshot-20200908@113126](https://user-images.githubusercontent.com/2335377/92459421-f5ed2700-f1c6-11ea-9ff2-04498aa6f582.png)
![screenshot-20200908@113740](https://user-images.githubusercontent.com/2335377/92460019-b8d56480-f1c7-11ea-9feb-b2d3427ce324.png)



Co-authored-by: def <dennis@felsin9.de>
2020-09-08 23:25:26 +00:00
bors[bot] 21a51ff64b
Merge #2783
2783: Don't insert timestamps into PEs with MinGW r=def- a=heinrich5991

Should make the build reproducible.

Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-09-08 12:15:45 +00:00
heinrich5991 68b1df084d Don't insert timestamps into PEs with MinGW
Should make the build reproducible.
2020-09-08 14:13:24 +02:00
bors[bot] e0e61007d6
Merge #2782
2782: Bosnian language update r=def- a=MikiGamer



Co-authored-by: MikiGamer <35080830+MikiGamer@users.noreply.github.com>
2020-09-08 12:02:26 +00:00
MikiGamer 4680b2a549
Update bosnian.txt 2020-09-08 13:13:21 +02:00
def 7bea697114 Add some keyboard shortcuts for demos 2020-09-08 11:42:52 +02:00
def 757998e7d0 Fix some 5:4 rendering in demo menu & recorder menu 2020-09-08 11:37:37 +02:00
def ddc4b74354 Another mac fix 2020-09-08 08:12:42 +02:00
def 7abe20175a Version 14.7.1, fix Mac build 2020-09-08 07:48:25 +02:00
bors[bot] a147361217
Merge #2779
2779: Improve performance of /points r=Zwelf a=def-

Worst case seems to be same performance, best case 3 ms instead of 3 s previously

Co-authored-by: def <dennis@felsin9.de>
2020-09-07 21:30:27 +00:00
def 9bbd7f6259 Improve performance of /points
No need to do the rank() calculation at all

by heinrich5991
2020-09-07 23:11:24 +02:00
def 9ef407fa13 Version 14.7 2020-09-07 18:04:46 +02:00
bors[bot] 219d53f4b2
Merge #2777
2777: Add generic_unhookable by mind r=heinrich5991 a=def-

with redrawn border since some were transparent

Co-authored-by: def <dennis@felsin9.de>
2020-09-07 15:48:42 +00:00
def 1e9411829e Add generic_unhookable by mind
with redrawn border since some were transparent
2020-09-07 17:46:36 +02:00
bors[bot] b1c808d32e
Merge #2775
2775: Document which commands only work in initial config (fixes #2773) r=heinrich5991 a=def-



Co-authored-by: def <dennis@felsin9.de>
2020-09-07 10:32:11 +00:00
def 28cd437684 Document which commands only work in initial config (fixes #2773) 2020-09-07 12:31:00 +02:00
Dennis Felsing 31776c4c7a
Merge pull request #2774 from def-/pr-collation
Fix duplicate teamranks (fixes #2405)
2020-09-07 12:14:15 +02:00
def a2b5d639a0 Fix duplicate teamranks (fixes #2405)
by ordering names in binary collation, consistent with C++ std::sort

Required since the official DDNet DB uses utf8mb4_general_ci default collation
2020-09-07 12:12:55 +02:00
def f1145fb7e0 Update ddnet-libs 2020-09-07 12:10:23 +02:00
def d492d6d270 Fix duplicate teamranks (fixes #2405)
by ordering names in binary collation, consistent with C++ std::sort

Required since the official DDNet DB uses utf8mb4_general_ci default collation
2020-09-07 12:10:23 +02:00
bors[bot] b45f3c8fb6
Merge #2749
2749: Bundle FFmpeg for everything r=heinrich5991 a=def-

@heinrich5991 Maybe you want to take a look already?

Co-authored-by: def <dennis@felsin9.de>
2020-09-07 09:20:56 +00:00
def 45457b6185 Bundle FFmpeg for everything
so that we can enable videorecorder by default

Works as expected.
2020-09-07 07:04:29 +02:00