1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Remove redundant ToCoordsXY

This commit is contained in:
ζeh Matt
2023-04-05 23:18:12 +03:00
parent 0c3c2ebcd2
commit 1a0afab6c6

View File

@@ -174,7 +174,7 @@ std::vector<TileElement> GetReorganisedTileElementsWithoutGhosts()
auto oldSize = newElements.size();
// Add all non-ghost elements
const auto* element = MapGetFirstElementAt(TileCoordsXY{ x, y }.ToCoordsXY());
const auto* element = MapGetFirstElementAt(TileCoordsXY{ x, y });
if (element != nullptr)
{
do
@@ -373,7 +373,7 @@ TileElement* MapGetNthElementAt(const CoordsXY& coords, int32_t n)
TileElement* MapGetFirstTileElementWithBaseHeightBetween(const TileCoordsXYRangedZ& loc, TileElementType type)
{
TileElement* tileElement = MapGetFirstElementAt(loc.ToCoordsXY());
TileElement* tileElement = MapGetFirstElementAt(loc);
if (tileElement == nullptr)
return nullptr;
do