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>
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>
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>
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>
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.
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>
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.
2787: Put dependencies before installation instructions in README r=heinrich5991 a=def-
as noticed by Андрей Рудой on Discord
Co-authored-by: def <dennis@felsin9.de>
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>
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>