cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -GNinja && ninja
this is my alias ddbuild
that i am using to ensure clangd has no troubles with includes (edited)root_pattern
in the lsp conf to detect files like build/compile_commands.json
NVIM_PROJECT_ROOT
when it existsvoid CRenderTools::MapScreenToGroup(float CenterX, float CenterY, CMapItemGroup *pGroup, float Zoom)
{
float ParallaxZoom = clamp((double)(maximum(pGroup->m_ParallaxX, pGroup->m_ParallaxY)), 0., 100.);
float aPoints[4];
MapScreenToWorld(CenterX, CenterY, pGroup->m_ParallaxX, pGroup->m_ParallaxY, ParallaxZoom,
pGroup->m_OffsetX, pGroup->m_OffsetY, Graphics()->ScreenAspect(), Zoom, aPoints);
Graphics()->MapScreen(aPoints[0], aPoints[1], aPoints[2], aPoints[3]);
}
void CRenderTools::MapScreenToInterface(float CenterX, float CenterY)
{
float aPoints[4];
MapScreenToWorld(CenterX, CenterY, 100.0f, 100.0f, 100.0f,
0, 0, Graphics()->ScreenAspect(), 1.0f, aPoints);
Graphics()->MapScreen(aPoints[0], aPoints[1], aPoints[2], aPoints[3]);
}
it is used to map the screen to specific coords. but thats not exactly what i wantconst CUIRect *CUI::Screen()
{
m_Screen.h = 600.0f;
m_Screen.w = Graphics()->ScreenAspect() * m_Screen.h;
return &m_Screen;
}
tf is this broconst CUIRect *CUI::Screen()
{
m_Screen.h = Graphics()->WindowHeight();
m_Screen.w = Graphics()->ScreenAspect() * m_Screen.h;
return &m_Screen;
}
right?const CUIRect *CUI::Screen()
{
m_Screen.h = Graphics()->WindowHeight();
m_Screen.w = Graphics()->ScreenAspect() * m_Screen.h;
return &m_Screen;
}
right? "community": {
"id": "ddnet",
"type": "Tutorial",
"country": "GER"
}
"community": {
"id": "ddnet",
"type": "Tutorial",
"country": "GER"
}
{
...,
"version": "0.6/0.7 2.3.26-beta",
"community": {
"id": "urn:community:kog", # Community id, but can be spoofed so only works in conjunction with signature
"icon": "", # the server icon
"admin": [
"https://kog.tw/",
"urn:discord:avolicious"
], # rfc3986 items
"public_key": "", # community public key
"signature": "" # signed <ip>:<port>:<community-id>, can be used in the client to show the icon
},
"client_score_kind": "time",
"clients": []
}
}
(edited)"community": {
"id": "ddnet",
"type": "Tutorial",
"country": "GER"
}
"community": {
"id": "ddnet",
"type": "Tutorial",
"country": "GER"
}
840fb84
Bump aiohttp from 3.8.5 to 3.9.2 - dependabot[bot]