|
@ -343,16 +343,16 @@ void sortScoreboard() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//Spielerliste mithilfe einer Hilfsveriable sortieren, um sie danach direkt ausgeben zu koennen |
|
|
//Spielerliste mithilfe einer Hilfsveriable sortieren, um sie danach direkt ausgeben zu koennen |
|
|
struct Player temp; |
|
|
|
|
|
|
|
|
struct Player tmp; |
|
|
for (int i = 0; i < numberOfLines; i++) |
|
|
for (int i = 0; i < numberOfLines; i++) |
|
|
{ |
|
|
{ |
|
|
for (int j = 0; j < (numberOfLines - i); j++) |
|
|
for (int j = 0; j < (numberOfLines - i); j++) |
|
|
{ |
|
|
{ |
|
|
if (playerlist[i].Points < playerlist[i + 1].Points) |
|
|
if (playerlist[i].Points < playerlist[i + 1].Points) |
|
|
{ |
|
|
{ |
|
|
temp = playerlist[i]; |
|
|
|
|
|
|
|
|
tmp = playerlist[i]; |
|
|
playerlist[i] = playerlist[i + 1]; |
|
|
playerlist[i] = playerlist[i + 1]; |
|
|
playerlist[i + 1] = temp; |
|
|
|
|
|
|
|
|
playerlist[i + 1] = tmp; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|