mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 07:43:01 +01:00
Rename snake_case functions in openrct2/src folder
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
@@ -962,7 +962,7 @@ void WindowRotateCamera(rct_window& w, int32_t direction)
|
||||
w.Invalidate();
|
||||
|
||||
call_event_viewport_rotate_on_all_windows();
|
||||
reset_all_sprite_quadrant_placements();
|
||||
ResetAllSpriteQuadrantPlacements();
|
||||
}
|
||||
|
||||
void WindowViewportGetMapCoordsByCursor(
|
||||
@@ -984,7 +984,7 @@ void WindowViewportGetMapCoordsByCursor(
|
||||
auto centreLoc = centre_2d_coordinates({ mapCoords.x, mapCoords.y, z }, w.viewport);
|
||||
if (!centreLoc)
|
||||
{
|
||||
log_error("Invalid location.");
|
||||
LOG_ERROR("Invalid location.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1005,7 +1005,7 @@ void WindowViewportCentreTileAroundCursor(rct_window& w, int32_t map_x, int32_t
|
||||
|
||||
if (!centreLoc.has_value())
|
||||
{
|
||||
log_error("Invalid location.");
|
||||
LOG_ERROR("Invalid location.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1362,7 +1362,7 @@ void WindowSetResize(rct_window& w, int32_t minWidth, int32_t minHeight, int32_t
|
||||
*/
|
||||
bool ToolSet(const rct_window& w, WidgetIndex widgetIndex, Tool tool)
|
||||
{
|
||||
if (input_test_flag(INPUT_FLAG_TOOL_ACTIVE))
|
||||
if (InputTestFlag(INPUT_FLAG_TOOL_ACTIVE))
|
||||
{
|
||||
if (w.classification == gCurrentToolWidget.window_classification && w.number == gCurrentToolWidget.window_number
|
||||
&& widgetIndex == gCurrentToolWidget.widget_index)
|
||||
@@ -1374,9 +1374,9 @@ bool ToolSet(const rct_window& w, WidgetIndex widgetIndex, Tool tool)
|
||||
ToolCancel();
|
||||
}
|
||||
|
||||
input_set_flag(INPUT_FLAG_TOOL_ACTIVE, true);
|
||||
input_set_flag(INPUT_FLAG_4, false);
|
||||
input_set_flag(INPUT_FLAG_6, false);
|
||||
InputSetFlag(INPUT_FLAG_TOOL_ACTIVE, true);
|
||||
InputSetFlag(INPUT_FLAG_4, false);
|
||||
InputSetFlag(INPUT_FLAG_6, false);
|
||||
gCurrentToolId = tool;
|
||||
gCurrentToolWidget.window_classification = w.classification;
|
||||
gCurrentToolWidget.window_number = w.number;
|
||||
@@ -1390,9 +1390,9 @@ bool ToolSet(const rct_window& w, WidgetIndex widgetIndex, Tool tool)
|
||||
*/
|
||||
void ToolCancel()
|
||||
{
|
||||
if (input_test_flag(INPUT_FLAG_TOOL_ACTIVE))
|
||||
if (InputTestFlag(INPUT_FLAG_TOOL_ACTIVE))
|
||||
{
|
||||
input_set_flag(INPUT_FLAG_TOOL_ACTIVE, false);
|
||||
InputSetFlag(INPUT_FLAG_TOOL_ACTIVE, false);
|
||||
|
||||
MapInvalidateSelectionRect();
|
||||
MapInvalidateMapSelectionTiles();
|
||||
|
||||
Reference in New Issue
Block a user