mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix formatting and declaration
This commit is contained in:
parent
d9db7a05c9
commit
2eab8c3784
|
@ -353,7 +353,7 @@ static void window_track_place_tooldown(rct_window* w, rct_widgetindex widgetInd
|
||||||
auto res = FindValidTrackDesignPlaceHeight(trackLoc, 0);
|
auto res = FindValidTrackDesignPlaceHeight(trackLoc, 0);
|
||||||
if (res->Error == GA_ERROR::OK)
|
if (res->Error == GA_ERROR::OK)
|
||||||
{
|
{
|
||||||
auto tdAction = TrackDesignAction({trackLoc, _currentTrackPieceDirection }, *_trackDesign);
|
auto tdAction = TrackDesignAction({ trackLoc, _currentTrackPieceDirection }, *_trackDesign);
|
||||||
tdAction.SetCallback([trackLoc](const GameAction*, const TrackDesignActionResult* result) {
|
tdAction.SetCallback([trackLoc](const GameAction*, const TrackDesignActionResult* result) {
|
||||||
if (result->Error == GA_ERROR::OK)
|
if (result->Error == GA_ERROR::OK)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1831,8 +1831,7 @@ int32_t place_virtual_track(
|
||||||
return _trackDesignPlaceCost;
|
return _trackDesignPlaceCost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static money32 track_design_ride_create_command(int32_t type, int32_t subType, int32_t flags, ride_id_t* outRideIndex)
|
||||||
money32 track_design_ride_create_command(int32_t type, int32_t subType, int32_t flags, ride_id_t* outRideIndex)
|
|
||||||
{
|
{
|
||||||
// Don't set colours as will be set correctly later.
|
// Don't set colours as will be set correctly later.
|
||||||
auto gameAction = RideCreateAction(type, subType, 0, 0);
|
auto gameAction = RideCreateAction(type, subType, 0, 0);
|
||||||
|
|
Loading…
Reference in New Issue