(svn r14815) -Codechange: separate 'highscore' code from 'company' code

This commit is contained in:
smatz
2009-01-03 18:44:20 +00:00
parent c73159f3e9
commit 7869c4ba66
12 changed files with 434 additions and 366 deletions

View File

@@ -32,18 +32,4 @@ static inline bool IsInteractiveCompany(CompanyID company)
return company == _local_company;
}
struct HighScore {
char company[100];
StringID title; ///< NOSAVE, has troubles with changing string-numbers.
uint16 score; ///< do NOT change type, will break hs.dat
};
extern HighScore _highscore_table[5][5]; // 4 difficulty-settings (+ network); top 5
void SaveToHighScore();
void LoadFromHighScore();
int8 SaveHighScoreValue(const Company *c);
int8 SaveHighScoreValueNetwork();
#endif /* COMPANY_FUNC_H */