summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-13 16:28:47 +0000
committerdarkvater <darkvater@openttd.org>2005-01-13 16:28:47 +0000
commit06cc62f40d84c91bba41510bbeab0ba8df7106b9 (patch)
tree3e1729e6f6d4e134ab87140f082b967a21b9cfd7 /player.h
parent0074496ea45c30c387092b29c5a8d868daf62f57 (diff)
downloadopenttd-06cc62f40d84c91bba41510bbeab0ba8df7106b9.tar.xz
(svn r1496) -Fix: highscore no longer crashes in network games with a dedicated server. At the end of the game (can only be set by the server) the highscore is shown for the top5 companies of that game
-Fix: fixed some compiler warnings -Added PF_NETWORK_ONLY flag to settings. Such a setting can only be modified in a network game.
Diffstat (limited to 'player.h')
-rw-r--r--player.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/player.h b/player.h
index 52752e1b6..2c93c2b0e 100644
--- a/player.h
+++ b/player.h
@@ -207,9 +207,10 @@ typedef struct HighScore {
uint16 score;
} HighScore;
-VARDEF HighScore _highscore_table[4][5]; // 4 difficulty-settings; top 5
+VARDEF HighScore _highscore_table[5][5]; // 4 difficulty-settings (+ network); top 5
void SaveToHighScore(void);
void LoadFromHighScore(void);
-int SaveHighScoreValue(const Player *p);
+int8 SaveHighScoreValue(const Player *p);
+int8 SaveHighScoreValueNetwork(void);
#endif /* PLAYER_H */