diff options
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 27 |
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) |