mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
fixed bubble sort loop (#802), 2 entries in the language files and a possible overrun
This commit is contained in:
parent
e16fdc3f3e
commit
baa57830ad
|
@ -130,8 +130,8 @@ Game over
|
|||
Game type
|
||||
== Herní typ
|
||||
|
||||
Game types
|
||||
== Herní typy
|
||||
Game types:
|
||||
== Herní typy:
|
||||
|
||||
General
|
||||
== Hlavní
|
||||
|
@ -199,8 +199,8 @@ MOTD
|
|||
Map
|
||||
== Mapa
|
||||
|
||||
Maximum ping
|
||||
== Max. odezva
|
||||
Maximum ping:
|
||||
== Max. odezva:
|
||||
|
||||
Miscellaneous
|
||||
== Ostatní
|
||||
|
|
|
@ -129,8 +129,8 @@ Game over
|
|||
Game type
|
||||
== Speltype
|
||||
|
||||
Game types
|
||||
== Speltypen
|
||||
Game types:
|
||||
== Speltypen:
|
||||
|
||||
General
|
||||
== Algemeen
|
||||
|
@ -198,8 +198,8 @@ MOTD
|
|||
Map
|
||||
== Kaart
|
||||
|
||||
Maximum ping
|
||||
== Maximale Ping
|
||||
Maximum ping:
|
||||
== Maximale Ping:
|
||||
|
||||
Miscellaneous
|
||||
== Anders
|
||||
|
|
|
@ -127,8 +127,8 @@ Game over
|
|||
Game type
|
||||
== Type de jeu
|
||||
|
||||
Game types
|
||||
== Types de jeu
|
||||
Game types:
|
||||
== Types de jeu:
|
||||
|
||||
General
|
||||
== Général
|
||||
|
@ -196,8 +196,8 @@ MOTD
|
|||
Map
|
||||
== Carte
|
||||
|
||||
Maximum ping
|
||||
== Ping maximum
|
||||
Maximum ping:
|
||||
== Ping maximum:
|
||||
|
||||
Miscellaneous
|
||||
== Divers
|
||||
|
|
|
@ -130,8 +130,8 @@ Game over
|
|||
Game type
|
||||
== Spieltyp
|
||||
|
||||
Game types
|
||||
== Spieltypen
|
||||
Game types:
|
||||
== Spieltypen:
|
||||
|
||||
General
|
||||
== Allgemein
|
||||
|
@ -199,8 +199,8 @@ MOTD
|
|||
Map
|
||||
== Karte
|
||||
|
||||
Maximum ping
|
||||
== Maximaler Ping
|
||||
Maximum ping:
|
||||
== Maximaler Ping:
|
||||
|
||||
Miscellaneous
|
||||
== Verschiedenes
|
||||
|
|
|
@ -127,8 +127,8 @@ Game over
|
|||
Game type
|
||||
== Tipo di gioco
|
||||
|
||||
Game types
|
||||
== Tipi di gioco
|
||||
Game types:
|
||||
== Tipi di gioco:
|
||||
|
||||
General
|
||||
== Generale
|
||||
|
@ -196,8 +196,8 @@ MOTD
|
|||
Map
|
||||
== Mappa
|
||||
|
||||
Maximum ping
|
||||
== Ping massimo
|
||||
Maximum ping:
|
||||
== Ping massimo:
|
||||
|
||||
Miscellaneous
|
||||
== Altro
|
||||
|
|
|
@ -127,8 +127,8 @@ Game over
|
|||
Game type
|
||||
== Tipo de jogo
|
||||
|
||||
Game types
|
||||
== Tipos de jogo
|
||||
Game types:
|
||||
== Tipos de jogo:
|
||||
|
||||
General
|
||||
== Geral
|
||||
|
@ -196,8 +196,8 @@ MOTD
|
|||
Map
|
||||
== Mapa
|
||||
|
||||
Maximum ping
|
||||
== Ping máximo
|
||||
Maximum ping:
|
||||
== Ping máximo:
|
||||
|
||||
Miscellaneous
|
||||
== Diverso
|
||||
|
|
|
@ -127,8 +127,8 @@ Game over
|
|||
Game type
|
||||
== Speltyp
|
||||
|
||||
Game types
|
||||
== Speltyper
|
||||
Game types:
|
||||
== Speltyper:
|
||||
|
||||
General
|
||||
== Generellt
|
||||
|
@ -196,8 +196,8 @@ MOTD
|
|||
Map
|
||||
== Karta
|
||||
|
||||
Maximum ping
|
||||
== Högsta ping
|
||||
Maximum ping:
|
||||
== Högsta ping:
|
||||
|
||||
Miscellaneous
|
||||
== Övrigt
|
||||
|
|
|
@ -166,13 +166,14 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch
|
|||
if(pInfo->m_Team == Team)
|
||||
{
|
||||
paPlayers[NumPlayers] = pInfo;
|
||||
NumPlayers++;
|
||||
if(++NumPlayers == MAX_CLIENTS)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// sort players
|
||||
for(int k = 0; k < NumPlayers; k++) // ffs, bubblesort
|
||||
for(int k = 0; k < NumPlayers-1; k++) // ffs, bubblesort
|
||||
{
|
||||
for(int i = 0; i < NumPlayers-k-1; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue