(svn r1479) -Added highscore chart (accessible from the difficulty window) with top5 companies for a given difficulty (select the difficulty in the menu)
-Added endgame score on 1 jan 2051 where you are added to the highscore if sufficiently large points have been accumulated. Game is paused while -These values are saved in hs.dat; added read/write functions for it -Added code to delete all windows to show charts. There is one issue left: somehow a news-gui pops up in front of the the chart at the end of the game.
This commit is contained in:
11
player.h
11
player.h
@@ -201,4 +201,15 @@ VARDEF Player _players[MAX_PLAYERS];
|
||||
#define IS_HUMAN_PLAYER(p) (!DEREF_PLAYER((byte)(p))->is_ai)
|
||||
#define IS_INTERACTIVE_PLAYER(p) (((byte)p) == _local_player)
|
||||
|
||||
typedef struct HighScore {
|
||||
char company[100];
|
||||
StringID title;
|
||||
uint16 score;
|
||||
} HighScore;
|
||||
|
||||
VARDEF HighScore _highscore_table[4][5]; // 4 difficulty-settings; top 5
|
||||
void SaveToHighScore(void);
|
||||
void LoadFromHighScore(void);
|
||||
int SaveHighScoreValue(const Player *p);
|
||||
|
||||
#endif /* PLAYER_H */
|
||||
|
Reference in New Issue
Block a user