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

Apply code style to context functions

This commit is contained in:
Duncan
2022-11-06 20:49:07 +00:00
committed by GitHub
parent 27f3a3a796
commit 482971710d
104 changed files with 557 additions and 558 deletions

View File

@@ -203,7 +203,7 @@ std::vector<TileElement> GetReorganisedTileElementsWithoutGhosts()
static void ReorganiseTileElements(size_t capacity)
{
context_setcurrentcursor(CursorID::ZZZ);
ContextSetCurrentCursor(CursorID::ZZZ);
std::vector<TileElement> newElements;
newElements.reserve(std::max(MIN_TILE_ELEMENTS, capacity));
@@ -448,7 +448,7 @@ void MapInit(const TileCoordsXY& size)
MapAnimationAutoCreate();
auto intent = Intent(INTENT_ACTION_MAP);
context_broadcast_intent(&intent);
ContextBroadcastIntent(&intent);
}
/**
@@ -1363,7 +1363,7 @@ void MapRemoveProvisionalElements()
if ((network_get_mode() != NETWORK_MODE_NONE) && window_find_by_class(WindowClass::TrackDesignPlace) != nullptr)
{
auto intent = Intent(INTENT_ACTION_TRACK_DESIGN_REMOVE_PROVISIONAL);
context_broadcast_intent(&intent);
ContextBroadcastIntent(&intent);
}
}
@@ -1388,7 +1388,7 @@ void MapRestoreProvisionalElements()
if ((network_get_mode() != NETWORK_MODE_NONE) && window_find_by_class(WindowClass::TrackDesignPlace) != nullptr)
{
auto intent = Intent(INTENT_ACTION_TRACK_DESIGN_RESTORE_PROVISIONAL);
context_broadcast_intent(&intent);
ContextBroadcastIntent(&intent);
}
}