(svn r21273) -Codechange: Return values should start at the same line.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user