The motivation is to have the exact same timestamp for every member
finishing in a team and the team rank as well. This makes the database
more consistent and tooling easier.
1561: Fix negative numbers in char r=def- a=yangfl
On some architectures char can be unsigned, which makes g++
very unhappy.
error: narrowing conversion of '-128' from 'int' to 'char' inside { }
Co-authored-by: yangfl <yangfl@users.noreply.github.com>
Instead show □ (white square, 0x25a1) as replacement character
The old behaviour was to continue when a glyph was missing, not load
the glyph and then instead fill the bitmap with random garbage that was
still in the buffer. Introduced by https://github.com/ddnet/ddnet/pull/1081
1541: Add non-destructive brush drawing r=def- a=12pm
New brush draw mode that doesn't override existing tiles. Empty brush still acts as an eraser. Button and ctrl+d shortcut to toggle it.
Co-authored-by: 12pm <30786226+12pm@users.noreply.github.com>
Number of minutes of active racing time before being asked to confirm
disconnecting, disconnecting dummy or quitting through GUI. Defaults to
20 minutes, -1 to disable, 0 to always enable.
Also removed confirmation to quit when in main menu, except when having
an unsaved map in editor.
Spectate and kill should already be safe thanks to server-side kill
protection.
- As requested by qshar and KoG players
- Similar to DDNet tab
- Info fetched from servers-kog entry from https://info.ddnet.tw/info
- Also supports countries and types
- Doesn't inform whether map has been finished
- Generalized the code a bit but it's still ugly
- Depends on #1533, also shows KoG servers as official/verified
1531: Don't rotate static game tiles and fix switch rotation r=def- a=12pm
Should be handy for mapping.
Can be disabled by activating unused tiles (don't think it's worth a separate toggle and if you want to do it, you're doing something unusal)
Co-authored-by: 12pm <30786226+12pm@users.noreply.github.com>
1535: Default layer names to the selected image/sound r=def- a=12pm
And don't paste default names into the edit field
Co-authored-by: 12pm <30786226+12pm@users.noreply.github.com>
Should be handy for mapping.
Can be disabled by activating unused tiles (don't think it's worth a separate toggle and if you want to do it, you're doing something unusal)
1528: str_format: always return length of written string r=heinrich5991 a=def-
As deducted from https://github.com/ddnet/ddnet/pull/1527
Co-authored-by: def <dennis@felsin9.de>
Quoting the man page of vsnprintf:
RETURN VALUE
Upon successful return, these functions return the number of characters printed
(excluding the null byte used to end output to strings).
The functions snprintf() and vsnprintf() do not write more than size bytes (including
the terminating null byte ('\0')). If the output was truncated due to this limit,
then the return value is the number of characters (excluding the terminating null
byte) which would have been written to the final string if enough space had been
available. Thus, a return value of size or more means that the output was truncated.
(See also below under NOTES.)
If an output error is encountered, a negative value is returned.
[...]
The glibc implementation of the functions snprintf() and vsnprintf() conforms to the
C99 standard, that is, behaves as described above, since glibc version 2.1. Until
glibc 2.0.6, they would return -1 when the output was truncated.
1529: Don't enforce own votes when moderating r=def- a=12pm
It's counterintuitive, and hence way too risky
Co-authored-by: 12pm <30786226+12pm@users.noreply.github.com>