Browse Source

refactoring: Die Variable an die Konvention angepasst

main
fdai7103 2 years ago
parent
commit
ae9e018051
  1. 6
      src/Paper-Bin.c

6
src/Paper-Bin.c

@ -343,16 +343,16 @@ void sortScoreboard()
}
//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 j = 0; j < (numberOfLines - i); j++)
{
if (playerlist[i].Points < playerlist[i + 1].Points)
{
temp = playerlist[i];
tmp = playerlist[i];
playerlist[i] = playerlist[i + 1];
playerlist[i + 1] = temp;
playerlist[i + 1] = tmp;
}
}
}

Loading…
Cancel
Save