diff options
author | rubidium <rubidium@openttd.org> | 2013-06-29 12:07:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-06-29 12:07:40 +0000 |
commit | 66b7123ed91113d147f01206b36a2c8be683c17f (patch) | |
tree | 3abb961bbf04d3d196262e90fe469bf5c58a28e9 | |
parent | fac0b83df660536c497395fcad5ad55c54a5d352 (diff) | |
download | openttd-66b7123ed91113d147f01206b36a2c8be683c17f.tar.xz |
(svn r25512) -Fix-ish: the high score company name could not have enough space to have both the company and president name
-rw-r--r-- | src/highscore.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/highscore.h b/src/highscore.h index 65c6aa40f..5d4b919ee 100644 --- a/src/highscore.h +++ b/src/highscore.h @@ -17,9 +17,14 @@ #include "settings_type.h" struct HighScore { - char company[100]; + /** + * The name of the company and president. + * The + 5 is for the comma and space or possibly other characters + * that join the two names in this single string and the '\0'. + */ + char company[(MAX_LENGTH_COMPANY_NAME_CHARS + MAX_LENGTH_PRESIDENT_NAME_CHARS + 5) * MAX_CHAR_LENGTH]; StringID title; ///< NOSAVE, has troubles with changing string-numbers. - uint16 score; ///< do NOT change type, will break hs.dat + uint16 score; ///< The score for this high score. Do NOT change type, will break hs.dat }; extern HighScore _highscore_table[SP_HIGHSCORE_END][5]; |