1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +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

@@ -68,7 +68,7 @@ GameActions::Result TrackRemoveAction::Query() const
bool found = false;
bool isGhost = GetFlags() & GAME_COMMAND_FLAG_GHOST;
TileElement* tileElement = map_get_first_element_at(_origin);
TileElement* tileElement = MapGetFirstElementAt(_origin);
do
{
@@ -167,7 +167,7 @@ GameActions::Result TrackRemoveAction::Query() const
map_invalidate_tile_full(mapLoc);
found = false;
tileElement = map_get_first_element_at(mapLoc);
tileElement = MapGetFirstElementAt(mapLoc);
do
{
if (tileElement == nullptr)
@@ -214,7 +214,7 @@ GameActions::Result TrackRemoveAction::Query() const
}
}
auto* surfaceElement = map_get_surface_element_at(mapLoc);
auto* surfaceElement = MapGetSurfaceElementAt(mapLoc);
if (surfaceElement == nullptr)
{
log_warning("Surface Element not found. x = %d, y = %d", mapLoc.x, mapLoc.y);
@@ -264,7 +264,7 @@ GameActions::Result TrackRemoveAction::Execute() const
bool found = false;
bool isGhost = GetFlags() & GAME_COMMAND_FLAG_GHOST;
TileElement* tileElement = map_get_first_element_at(_origin);
TileElement* tileElement = MapGetFirstElementAt(_origin);
do
{
@@ -346,7 +346,7 @@ GameActions::Result TrackRemoveAction::Execute() const
map_invalidate_tile_full(mapLoc);
found = false;
tileElement = map_get_first_element_at(mapLoc);
tileElement = MapGetFirstElementAt(mapLoc);
do
{
if (tileElement == nullptr)
@@ -393,7 +393,7 @@ GameActions::Result TrackRemoveAction::Execute() const
}
}
auto* surfaceElement = map_get_surface_element_at(mapLoc);
auto* surfaceElement = MapGetSurfaceElementAt(mapLoc);
if (surfaceElement == nullptr)
{
log_warning("Surface Element not found. x = %d, y = %d", mapLoc.x, mapLoc.y);