diff options
author | tron <tron@openttd.org> | 2006-02-18 14:41:24 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-18 14:41:24 +0000 |
commit | 7692556c6204fd3707456f5f63a4f055c39878dc (patch) | |
tree | 2b47e6b2c9b73650b42ce6caa2b78f05d91cc03b /strings.c | |
parent | 95ce125633734ced1cfc1de45034b51a26fc94cc (diff) | |
download | openttd-7692556c6204fd3707456f5f63a4f055c39878dc.tar.xz |
(svn r3613) Some more const, indentation, whitespace and similar stuff
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -589,12 +589,11 @@ static char *FormatString(char *buff, const char *str, const int32 *argv, uint c } case 11: { /* {INDUSTRY} */ - Industry *i = GetIndustry(GetInt32(&argv)); + const Industry* i = GetIndustry(GetInt32(&argv)); int32 args[2]; // industry not valid anymore? - if (i->xy == 0) - break; + if (i->xy == 0) break; // First print the town name and the industry type name // The string STR_INDUSTRY_PATTERN controls the formatting @@ -1048,7 +1047,6 @@ bool ReadLanguagePack(int lang_index) ttd_strlcpy(_dynlang.curr_file, _dynlang.ent[lang_index].file, sizeof(_dynlang.curr_file)); - _dynlang.curr = lang_index; return true; } @@ -1117,8 +1115,7 @@ void InitializeLanguagePacks(void) error(n == 0 ? "No available language packs" : "Invalid version of language packs"); dl->num = m; - for (i = 0; i != dl->num; i++) - dl->dropdown[i] = SPECSTR_LANGUAGE_START + i; + for (i = 0; i != dl->num; i++) dl->dropdown[i] = SPECSTR_LANGUAGE_START + i; dl->dropdown[i] = INVALID_STRING_ID; for (i = 0; i != dl->num; i++) |