mirror of
https://github.com/ddnet/ddnet.git
synced 2024-10-18 23:08:19 +00:00
aa5a24abc4
- Add separate `CFGFLAG_COLLIGHT7` for 0.7 color config variables, which use `61/255` as darkest lighting value. In comparison, `CFGFLAG_COLLIGHT` uses `0.5` darkest lighting, so the color values being shown for 0.7 color variables were incorrect. Closes #8775. - Pass darkest lighting as parameter directly instead of using `bool`s to avoid duplicating the logic. - Add `ColorHSLA::DARKEST_LGT7` constant to replace existing `CTeeInfo::ms_DarkestLGT7` and `CSkins7::DARKEST_COLOR_LGT` constants. - Round color components before printing them in config variable command handler, as color components are generally also rounded before being packed and before rendering. - Remove default value of `ColorHSLA::UnclampLighting` function, to avoid incorrect usage. |
||
---|---|---|
.. | ||
cpp | ||
engine/shared | ||
test | ||
.clang-tidy |