Update src/openrct2/world/Location.hpp

Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
This commit is contained in:
Michał Janiszewski 2024-05-09 13:36:06 +02:00 committed by GitHub
parent 1428504864
commit 51960bed48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -811,8 +811,8 @@ struct MapRange : public RectRange<CoordsXY>
// Don't use std::min/max, as they require <algorithm>, one of C++'s heaviest
// in this very common header.
auto result = MapRange(
GetLeft() > GetRight() ? GetRight() : GetLeft(), // min
GetTop() > GetBottom() ? GetBottom() : GetTop(), // min
GetLeft() < GetRight() ? GetLeft() : GetRight(), // min
GetTop() < GetBottom() ? GetTop() : GetBottom(), // min
GetLeft() > GetRight() ? GetLeft() : GetRight(), // max
GetTop() > GetBottom() ? GetTop() : GetBottom() // max
);