mirror of https://github.com/OpenRCT2/OpenRCT2.git
Update src/openrct2/world/Location.hpp
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
This commit is contained in:
parent
1428504864
commit
51960bed48
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue