(svn r1520) Trim 134 (!) lines with trailing whitespace ):
This commit is contained in:
12
players.c
12
players.c
@@ -752,11 +752,11 @@ static CheatHasBeenUsed(void)
|
||||
const Cheat* cht_last = &cht[sizeof(_cheats) / sizeof(Cheat)];
|
||||
|
||||
for (; cht != cht_last; cht++) {
|
||||
if (cht->been_used)
|
||||
if (cht->been_used)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Save the highscore for the player */
|
||||
@@ -774,7 +774,7 @@ int8 SaveHighScoreValue(const Player *p)
|
||||
/* You are in the TOP5. Move all values one down and save us there */
|
||||
if (hs[i].score <= score) {
|
||||
byte buf[sizeof(hs[i].company)];
|
||||
|
||||
|
||||
// move all elements one down starting from the replaced one
|
||||
memmove(&hs[i + 1], &hs[i], sizeof(HighScore) * (lengthof(_highscore_table[0]) - i - 1));
|
||||
SetDParam(0, p->president_name_1);
|
||||
@@ -838,7 +838,7 @@ int8 SaveHighScoreValueNetwork(void)
|
||||
hs->title = EndGameGetPerformanceTitleFromValue(hs->score);
|
||||
|
||||
// get the ranking of the local player
|
||||
if ((*p_cur)->index == (int8)_local_player)
|
||||
if ((*p_cur)->index == (int8)_local_player)
|
||||
player = i;
|
||||
|
||||
p_cur++;
|
||||
@@ -874,7 +874,7 @@ void SaveToHighScore(void)
|
||||
}
|
||||
|
||||
/* Initialize the highscore table to 0 and if any file exists, load in values */
|
||||
void LoadFromHighScore(void)
|
||||
void LoadFromHighScore(void)
|
||||
{
|
||||
FILE *fp = fopen(_highscore_file, "r");
|
||||
|
||||
@@ -896,7 +896,7 @@ void LoadFromHighScore(void)
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
|
||||
/* Initialize end of game variable (when to show highscore chart) */
|
||||
_patches.ending_date = 2051;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user