mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +01:00
Remove redundant ToCoordsXY
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user