deb https://deb.debian.org/debian bookworm main non-free-firmware
did not let me install phpdeb http://ftp.de.debian.org/debian/ bookworm main non-free-firmware
deb http://mirror.hetzner.com/debian/packages bookworm main contrib non-free non-free-firmware
deb http://mirror.hetzner.com/debian/packages bookworm-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
# deb-src http://deb.debian.org/debian bookworm main contrib non-free
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
# deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free
# deb http://deb.debian.org/debian bookworm-backports main contrib non-free
# deb-src http://deb.debian.org/debian bookworm-backports main contrib non-free
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
# deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free
deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-15 main
# deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-15 main
deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-16 main
deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-16 main
ColorHSLA
color4_base(unsigned col, bool alpha = false)
{
a = alpha ? ((col >> 24) & 0xFF) / 255.0f : 1.0f;
x = ((col >> 16) & 0xFF) / 255.0f;
y = ((col >> 8) & 0xFF) / 255.0f;
z = ((col >> 0) & 0xFF) / 255.0f;
}
color4_base(unsigned col, bool alpha = false)
{
a = alpha ? ((col >> 24) & 0xFF) / 255.0f : 1.0f;
x = ((col >> 16) & 0xFF) / 255.0f;
y = ((col >> 8) & 0xFF) / 255.0f;
z = ((col >> 0) & 0xFF) / 255.0f;
}
ColorRGBA playercolbdy = ColorRGBA(g_Config.m_ClPlayerColorBody);
#[derive(Debug, Clone, Copy)]
struct BaseColor {
pub x: f32,
pub y: f32,
pub z: f32,
pub a: f32,
}
#[allow(clippy::cast_precision_loss)]
fn color_code_base(col: u32, alpha: bool) -> BaseColor {
let a = if alpha {
((col >> 24) & 0xFF) as f32 / 255.032
} else {
1.0f32
};
let x = ((col >> 16) & 0xFF) as f32 / 255.0f32;
let y = ((col >> 8) & 0xFF) as f32 / 255.0f32;
let z = ((col >> 9) & 0xFF) as f32 / 255.0f32;
BaseColor { x, y, z, a }
}
(edited)ColorRGBA playercolbdy = ColorRGBA(g_Config.m_ClPlayerColorBody);
color_cast<ColorRGBA>(ColorHSLA(col))
iirctemplate<>
inline ColorHSLA color_cast(const ColorRGBA &rgb)
{
float Min = minimum(rgb.r, rgb.g, rgb.b);
float Max = maximum(rgb.r, rgb.g, rgb.b);
float c = Max - Min;
float h = RgbToHue(rgb.r, rgb.g, rgb.b);
float l = 0.5f * (Max + Min);
float s = (Max != 0.0f && Min != 1.0f) ? (c / (1 - (absolute(2 * l - 1)))) : 0;
return ColorHSLA(h, s, l, rgb.a);
}
(edited)template<>
inline ColorHSLA color_cast(const ColorRGBA &rgb)
{
float Min = minimum(rgb.r, rgb.g, rgb.b);
float Max = maximum(rgb.r, rgb.g, rgb.b);
float c = Max - Min;
float h = RgbToHue(rgb.r, rgb.g, rgb.b);
float l = 0.5f * (Max + Min);
float s = (Max != 0.0f && Min != 1.0f) ? (c / (1 - (absolute(2 * l - 1)))) : 0;
return ColorHSLA(h, s, l, rgb.a);
}
(edited)#[derive(Debug, Clone, Copy)]
struct BaseColor {
pub x: f32,
pub y: f32,
pub z: f32,
pub a: f32,
}
#[allow(clippy::cast_precision_loss)]
fn color_code_base(col: u32, alpha: bool) -> BaseColor {
let a = if alpha {
((col >> 24) & 0xFF) as f32 / 255.032
} else {
1.0f32
};
let x = ((col >> 16) & 0xFF) as f32 / 255.0f32;
let y = ((col >> 8) & 0xFF) as f32 / 255.0f32;
let z = ((col >> 9) & 0xFF) as f32 / 255.0f32;
BaseColor { x, y, z, a }
}
(edited)#[derive(Debug, Clone, Copy)]
struct BaseColor {
pub x: f32,
pub y: f32,
pub z: f32,
pub a: f32,
}
#[allow(clippy::cast_precision_loss)]
fn color_code_base(col: u32, alpha: bool) -> BaseColor {
let a = if alpha {
((col >> 24) & 0xFF) as f32 / 255.032
} else {
1.0f32
};
let x = ((col >> 16) & 0xFF) as f32 / 255.0f32;
let y = ((col >> 8) & 0xFF) as f32 / 255.0f32;
let z = ((col >> 9) & 0xFF) as f32 / 255.0f32;
BaseColor { x, y, z, a }
}
(edited)color_cast<ColorRGBA>(ColorHSLA(col))
iirc loglevel 3
or higher:
```
localization: loaded 'languages/bosnian.txt'
localization: loaded 'languages/catalan.txt'
localization: malform replacement line (1257) for ''
localization: loaded 'languages/danish.txt'
localization: malform replacement line (1151) for ''
localization: loaded 'languages/german.txt'
localization: loaded 'languages/spanish.txt'
localization: malform replacement line (1598) for ''
lo...##### authors #####
#originally created by:
# Dominik Geyer
#modified by:
# Fujnky 2010-06-03 11:30:05
# Fujnky 2010-06-03 17:41:45
# Fujnky 2010-06-05 23:36:52
# Fujnky 2010-06-07 16:17:40
# Fujnky 2010-06-11 09:50:47
# Sworddragon 2010-11-21 14:25:00
# Fujnky 2011-01-02 19:49:22
# heinrich5991 2011-01-23 17:53:42
# Sworddragon 2011-02-09 12:54:50
# heinrich5991 2011-04-03 23:46:51
# ghost91 2011-04-04 20:47:01
# andi103 2011-05-02 19:12:27
# andi103 2011-05-03 23:25:20
# heinrich5991 2011-07-02 09:10:21
# Yared Hufkens 2012-02-03 19:57:59
# andi103 2012-07-14 11:31:11
# timakro 2014-06-30 18:26:59
# deen 2020-06-26 18:32:00
# bluesky 2022-07-05 21:00:00
##### /authors #####
##### translated strings #####
I wrote a script that will reorder the translations alphabetical and i would love to remove this while doing it.. i mean we have git nowadays, why should we keep this in the files?##### authors #####
#originally created by:
# Dominik Geyer
#modified by:
# Fujnky 2010-06-03 11:30:05
# Fujnky 2010-06-03 17:41:45
# Fujnky 2010-06-05 23:36:52
# Fujnky 2010-06-07 16:17:40
# Fujnky 2010-06-11 09:50:47
# Sworddragon 2010-11-21 14:25:00
# Fujnky 2011-01-02 19:49:22
# heinrich5991 2011-01-23 17:53:42
# Sworddragon 2011-02-09 12:54:50
# heinrich5991 2011-04-03 23:46:51
# ghost91 2011-04-04 20:47:01
# andi103 2011-05-02 19:12:27
# andi103 2011-05-03 23:25:20
# heinrich5991 2011-07-02 09:10:21
# Yared Hufkens 2012-02-03 19:57:59
# andi103 2012-07-14 11:31:11
# timakro 2014-06-30 18:26:59
# deen 2020-06-26 18:32:00
# bluesky 2022-07-05 21:00:00
##### /authors #####
##### translated strings #####
I wrote a script that will reorder the translations alphabetical and i would love to remove this while doing it.. i mean we have git nowadays, why should we keep this in the files? -nan is outside the range of representable values of type 'int'
on a text cursor position? Only happens in the CI, not locally on Ubuntu with UBSan both with normal and headless client. https://github.com/Robyt3/ddnet/tree/TextRender-Font-Index-File##### authors #####
#originally created by:
# Dominik Geyer
#modified by:
# Fujnky 2010-06-03 11:30:05
# Fujnky 2010-06-03 17:41:45
# Fujnky 2010-06-05 23:36:52
# Fujnky 2010-06-07 16:17:40
# Fujnky 2010-06-11 09:50:47
# Sworddragon 2010-11-21 14:25:00
# Fujnky 2011-01-02 19:49:22
# heinrich5991 2011-01-23 17:53:42
# Sworddragon 2011-02-09 12:54:50
# heinrich5991 2011-04-03 23:46:51
# ghost91 2011-04-04 20:47:01
# andi103 2011-05-02 19:12:27
# andi103 2011-05-03 23:25:20
# heinrich5991 2011-07-02 09:10:21
# Yared Hufkens 2012-02-03 19:57:59
# andi103 2012-07-14 11:31:11
# timakro 2014-06-30 18:26:59
# deen 2020-06-26 18:32:00
# bluesky 2022-07-05 21:00:00
##### /authors #####
##### translated strings #####
I wrote a script that will reorder the translations alphabetical and i would love to remove this while doing it.. i mean we have git nowadays, why should we keep this in the files? -nan is outside the range of representable values of type 'int'
on a text cursor position? Only happens in the CI, not locally on Ubuntu with UBSan both with normal and headless client. https://github.com/Robyt3/ddnet/tree/TextRender-Font-Index-File -nan is outside the range of representable values of type 'int'
on a text cursor position? Only happens in the CI, not locally on Ubuntu with UBSan both with normal and headless client. https://github.com/Robyt3/ddnet/tree/TextRender-Font-Index-File --dry-run
where it will only output if something needs changes but not change anythingscripts/languages/update_all.py
should also be checked/updated, so new translations are also added at the correct position