marking
but then what are all the other keys for?/home/chiller/Desktop/git/ddnet/src/engine/shared/console.cpp:739:2: error: static member accessed through instance [readability-static-accessed-through-instance,-warnings-as-errors]
739 | pConsole->ConCommandStatus(&Result, pConsole);
| ^~~~~~~~~~
| CConsole::
static const
```
$ grep 'static.*const' src/ -r | grep -v '[()]' | grep -Ev '(textrender|external)'
[..]
src/engine/client/client.cpp:static const ColorRGBA gs_ClientNetworkPrintColor{0.7f, 1, 0.7f, 1.0f};
src/engine/client/client.cpp:static const ColorRGBA gs_ClientNetworkErrPrintColor{1.0f, 0.25f, 0.25f, 1.0f};
src/engine/client/client.cpp: static const int NETTYPES[2] = {NETTYPE_IPV6, NETTYPE_IPV4};
src/engine/client/sound.cpp:static constexpr ...CNetMsg_Cl_*
in engine
. See https://github.com/ddnet/ddnet/pull/5949#discussion_r1590462743.$ curl -I https://ddnet.org/skins/skin/cammo.png
HTTP/2 200
date: Mon, 06 May 2024 09:05:57 GMT
content-type: image/png
content-length: 5863
last-modified: Tue, 27 Jan 2015 00:48:35 GMT
etag: "54c6e063-16e7"
expires: Sat, 27 Apr 2024 07:53:08 GMT
cache-control: max-age=86400
access-control-allow-origin: *
cf-cache-status: HIT
age: 75851
accept-ranges: bytes
server: cloudflare
cf-ray: 87f7cfc00e533bc4-WAW
alt-svc: h3=":443"; ma=86400
$ curl -H 'If-None-Match: "54c6e063-16e7"' -I https://ddnet.org/skins/skin/cammo.png
HTTP/2 304
date: Mon, 06 May 2024 09:08:23 GMT
last-modified: Tue, 27 Jan 2015 00:48:35 GMT
etag: "54c6e063-16e7"
expires: Sat, 27 Apr 2024 07:53:08 GMT
cache-control: max-age=86400
access-control-allow-origin: *
cf-cache-status: HIT
age: 75997
server: cloudflare
cf-ray: 87f7d34e4ab63542-WAW
alt-svc: h3=":443"; ma=86400
Iterator
to a ParallelIterator
.rayon
offers an API to turn non-parallel iterators into parallel ones, that works out nicely https://docs.rs/rayon/latest/rayon/iter/trait.ParallelBridge.html#tymethod.par_bridge $ curl -I https://ddnet.org/skins/skin/cammo.png
HTTP/2 200
date: Mon, 06 May 2024 09:05:57 GMT
content-type: image/png
content-length: 5863
last-modified: Tue, 27 Jan 2015 00:48:35 GMT
etag: "54c6e063-16e7"
expires: Sat, 27 Apr 2024 07:53:08 GMT
cache-control: max-age=86400
access-control-allow-origin: *
cf-cache-status: HIT
age: 75851
accept-ranges: bytes
server: cloudflare
cf-ray: 87f7cfc00e533bc4-WAW
alt-svc: h3=":443"; ma=86400
$ curl -H 'If-None-Match: "54c6e063-16e7"' -I https://ddnet.org/skins/skin/cammo.png
HTTP/2 304
date: Mon, 06 May 2024 09:08:23 GMT
last-modified: Tue, 27 Jan 2015 00:48:35 GMT
etag: "54c6e063-16e7"
expires: Sat, 27 Apr 2024 07:53:08 GMT
cache-control: max-age=86400
access-control-allow-origin: *
cf-cache-status: HIT
age: 75997
server: cloudflare
cf-ray: 87f7d34e4ab63542-WAW
alt-svc: h3=":443"; ma=86400
expires: Sat, 27 Apr 2024 07:53:08 GMT
is easier to parse than cache-control: max-age=86400
because we can use curl's date parser (which we already use elsewhere))-I
|x| = -x
is true if x is negative?x = 0
(edited)|x| = -x
is true if x is negative? /grenade
in the game chat (as long as they're in a team with practice mode enabled).
Note that with the way things are currently being done, there's no clean way for me to "wrap" the callbacks used in the rcon commands cleanly. Currently there has to be a duplicate function for every comman...