fixed bubble sort loop (#802), 2 entries in the language files and a possible overrun

This commit is contained in:
Tom Adams 2010-05-29 23:57:30 +00:00
parent e16fdc3f3e
commit baa57830ad
8 changed files with 31 additions and 30 deletions

View file

@ -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í

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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++)
{