1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 18:25:16 +01:00

Code style: Remove snakes from everything world apart from Map.h (#18273)

* Remove remaining snakes from world (outside of map)

* Initial few desnaking of Map.h
This commit is contained in:
Duncan
2022-10-11 19:39:24 +01:00
committed by GitHub
parent 0c78a27d9f
commit 67bbc8560d
90 changed files with 404 additions and 404 deletions

View File

@@ -22,7 +22,7 @@ using namespace OpenRCT2::TrackMetaData;
std::shared_ptr<ScTrackIterator> ScTrackIterator::FromElement(const CoordsXY& position, int32_t elementIndex)
{
auto el = map_get_nth_element_at(position, elementIndex);
auto el = MapGetNthElementAt(position, elementIndex);
auto origin = GetTrackSegmentOrigin(CoordsXYE(position, el));
if (!origin)
return nullptr;

View File

@@ -69,7 +69,7 @@ namespace OpenRCT2::Scripting
DukValue ScTile::data_get() const
{
auto ctx = GetDukContext();
auto first = map_get_first_element_at(_coords);
auto first = MapGetFirstElementAt(_coords);
auto dataLen = GetNumElements(first) * sizeof(TileElement);
auto data = duk_push_fixed_buffer(ctx, dataLen);
if (first != nullptr)
@@ -92,7 +92,7 @@ namespace OpenRCT2::Scripting
auto numElements = dataLen / sizeof(TileElement);
if (numElements == 0)
{
map_set_tile_element(TileCoordsXY(_coords), nullptr);
MapSetTileElement(TileCoordsXY(_coords), nullptr);
}
else
{
@@ -109,7 +109,7 @@ namespace OpenRCT2::Scripting
}
// Copy data to element span
first = map_get_first_element_at(_coords);
first = MapGetFirstElementAt(_coords);
currentNumElements = GetNumElements(first);
if (currentNumElements != 0)
{
@@ -202,7 +202,7 @@ namespace OpenRCT2::Scripting
TileElement* ScTile::GetFirstElement() const
{
return map_get_first_element_at(_coords);
return MapGetFirstElementAt(_coords);
}
size_t ScTile::GetNumElements(const TileElement* first)