summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-11-20 15:44:24 +0000
committeralberth <alberth@openttd.org>2010-11-20 15:44:24 +0000
commitab50f74d7fa3c1c96de54012ccc197c4800901c8 (patch)
treefbee322b7dcec81c6a98a1ee923984d902e834f9 /src/strings.cpp
parent38dc34828ea679e4952f9f30361382e29d2f2e06 (diff)
downloadopenttd-ab50f74d7fa3c1c96de54012ccc197c4800901c8.tar.xz
(svn r21273) -Codechange: Return values should start at the same line.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index d9535315a..8b1fd6ade 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1308,20 +1308,19 @@ static inline void SortNetworkLanguages() {}
bool LanguagePackHeader::IsValid() const
{
- return
- this->ident == TO_LE32(LanguagePackHeader::IDENT) &&
- this->version == TO_LE32(LANGUAGE_PACK_VERSION) &&
- this->plural_form < LANGUAGE_MAX_PLURAL &&
- this->text_dir <= 1 &&
- this->newgrflangid < MAX_LANG &&
- this->num_genders < MAX_NUM_GENDERS &&
- this->num_cases < MAX_NUM_CASES &&
- StrValid(this->name, lastof(this->name)) &&
- StrValid(this->own_name, lastof(this->own_name)) &&
- StrValid(this->isocode, lastof(this->isocode)) &&
- StrValid(this->digit_group_separator, lastof(this->digit_group_separator)) &&
- StrValid(this->digit_group_separator_currency, lastof(this->digit_group_separator_currency)) &&
- StrValid(this->digit_decimal_separator, lastof(this->digit_decimal_separator));
+ return this->ident == TO_LE32(LanguagePackHeader::IDENT) &&
+ this->version == TO_LE32(LANGUAGE_PACK_VERSION) &&
+ this->plural_form < LANGUAGE_MAX_PLURAL &&
+ this->text_dir <= 1 &&
+ this->newgrflangid < MAX_LANG &&
+ this->num_genders < MAX_NUM_GENDERS &&
+ this->num_cases < MAX_NUM_CASES &&
+ StrValid(this->name, lastof(this->name)) &&
+ StrValid(this->own_name, lastof(this->own_name)) &&
+ StrValid(this->isocode, lastof(this->isocode)) &&
+ StrValid(this->digit_group_separator, lastof(this->digit_group_separator)) &&
+ StrValid(this->digit_group_separator_currency, lastof(this->digit_group_separator_currency)) &&
+ StrValid(this->digit_decimal_separator, lastof(this->digit_decimal_separator));
}
bool ReadLanguagePack(const LanguageMetadata *lang)