pListedPlayer
is fine, but I don't understand what Listed
is supposed to meanpListedPlayer
is fine. I can't come up with a better nameGameServer()->m_apPlayers[i]->GetCharacter()->Team()
instead of Teams()->m_Core.Team(i)
it could be replaced with a for each... that is possible in many places (edited)pListedPlayer
is fine. I can't come up with a better name pPlayer
is better but ...pPlayer
is already used in the functionpPlayer
is also used inside the loop)pPlayer
to pOriginPlayer
but I'm also ok with pListedPlayer
fixup
or squash
in the interactive git-rebase?git rebase -i upstream/master
drop
squash
or fixup
) (edited)squash
or fixup
da5ec5a
Include <iterator>
instead of <array>
for std::size
- Robyt3
0a4b1b9
Organize generated protocol includes - Robyt3
4048bbb
Organize engine-shared includes - Robyt3
557ee84
Organize base includes - Robyt3
0813fbb
Move android log include to correct file - Robyt3
4949645
Organize game-shared includes - Robyt3
2c9696c
Use existing typedef instead of duplicating arguments - Robyt3
32707f6
Remove unused CVideo constructor argument, organize includes - Robyt3
23cce54
Organize engine-client includes - Robyt3
a1851ed
Organize engine-server includes - Robyt3
2add5d5
Organize game-client and editor includes - Robyt3
352734d
Organize game-server includes - Robyt3
1bb9641
Merge #5450 - bors[bot]// This script detects the host os and shows the correct download.
window.addEventListener('DOMContentLoaded', (event) => {
const downloadButton = document.querySelector("#download-link");
function getDownloadLinkEnd() {
const userAgent = navigator.userAgent;
var osPlatform = "unk";
if (userAgent.match(/android/i))
osPlatform = 'and';
else if (userAgent.match(/wow64/i))
osPlatform = 'win64';
else if (userAgent.match(/win64/i))
osPlatform = 'win64';
else if (userAgent.match(/windows/i))
osPlatform = 'win32';
else if (userAgent.match(/linux.*x86_64/i))
osPlatform = 'lin64';
else if (userAgent.match(/linux.*i686/i))
osPlatform = 'lin32';
else if (userAgent.match(/macintosh|mac os/i))
osPlatform = 'mac';
const linkEnds = {
"win64": ["win64.zip", "Windows (64bit)"],
"win32": ["win32.zip", "Windows (32bit)"],
"lin64": ["linux_x86_64.tar.xz", "Linux x86"],
"lin32": ["linux_x86.tar.xz", "Linux x86_64"],
"mac": ["macos.dmg", "macOs"],
"unk": false,
};
return linkEnds[osPlatform];
}
const linkEnd = getDownloadLinkEnd();
if(linkEnd) {
downloadButton.href = `/downloads/DDNet-{{DDNET_VERSION}}-${linkEnd[0]}`;
downloadButton.textContent = `Download DDraceNetwork Client & Server {{DDNET_VERSION}} for ${linkEnd[1]}`
}
});
-- Give me params.name (text) from the events table
select params->>'name' from events;
-- Find only events with a specific name
select * from events where params->>'name' = 'Click Button';
-- Give me the first index of a JSON array
select params->ids->0 from events;
-- Find users where preferences.beta is true (boolean)
-- This requires type casting preferences->'beta' from json to boolean
select preferences->'beta' from users where (preferences->>'beta')::boolean is true;
-- Give me params.name (text) from the events table
select params->>'name' from events;
-- Find only events with a specific name
select * from events where params->>'name' = 'Click Button';
-- Give me the first index of a JSON array
select params->ids->0 from events;
-- Find users where preferences.beta is true (boolean)
-- This requires type casting preferences->'beta' from json to boolean
select preferences->'beta' from users where (preferences->>'beta')::boolean is true;
choco install llvm
probably does the job