summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-15 08:58:31 +0000
committertron <tron@openttd.org>2005-01-15 08:58:31 +0000
commitdd6db7306904d9fa66d81910e2784467057d7a0d (patch)
treee70312993e66c5b848feb30831527cca401c08f8 /players.c
parentcd6904c36b34eba0b6820804e179d1f6fabe91cd (diff)
downloadopenttd-dd6db7306904d9fa66d81910e2784467057d7a0d.tar.xz
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
Diffstat (limited to 'players.c')
-rw-r--r--players.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/players.c b/players.c
index f833bb793..26ee40952 100644
--- a/players.c
+++ b/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;
}