1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 08:52:40 +01:00

Codechange: replace MAX_UVALUE with std::numeric_limits::max

This commit is contained in:
Rubidium
2025-01-30 17:09:47 +01:00
committed by rubidium42
parent f67589d96e
commit 4ca1fe6c32
14 changed files with 29 additions and 28 deletions

View File

@@ -724,7 +724,7 @@ protected:
*/
inline CompanyMask GetOverlayCompanyMask() const
{
return Company::IsValidID(_local_company) ? 1U << _local_company : MAX_UVALUE(CompanyMask);
return Company::IsValidID(_local_company) ? 1U << _local_company : std::numeric_limits<CompanyMask>::max();
}
/** Blink the industries (if selected) on a regular interval. */