mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
implement sub_6CC3FB
This commit is contained in:
@@ -1382,7 +1382,7 @@ void window_ride_construct(rct_window *w)
|
||||
|
||||
trackMapElement = sub_6CAF80(rideIndex, &trackX, &trackY);
|
||||
if (trackMapElement == (rct_map_element*)-1) {
|
||||
RCT2_CALLPROC_X(0x006CC3FB, 0, 0, 0, rideIndex, 0, 0, 0);
|
||||
sub_6CC3FB(rideIndex);
|
||||
} else {
|
||||
trackMapElement = ride_find_track_gap(trackMapElement, &trackX, &trackY);
|
||||
|
||||
|
||||
33
src/windows/ride_construction.c
Normal file
33
src/windows/ride_construction.c
Normal file
@@ -0,0 +1,33 @@
|
||||
/*****************************************************************************
|
||||
* Copyright (c) 2014 Ted John
|
||||
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
||||
*
|
||||
* This file is part of OpenRCT2.
|
||||
*
|
||||
* OpenRCT2 is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../addresses.h"
|
||||
#include "../interface/window.h"
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006CB481
|
||||
*/
|
||||
rct_window *window_construction_open()
|
||||
{
|
||||
int eax, ebx, ecx, edx, esi, edi, ebp;
|
||||
RCT2_CALLFUNC_X(0x006CB481, &eax, &ebx, &ecx, &edx, &esi, &edi, &ebp);
|
||||
return (rct_window*)esi;
|
||||
}
|
||||
@@ -607,7 +607,7 @@ static void window_track_place_tooldown()
|
||||
window_ride_main_open(rideIndex);
|
||||
window_close(w);
|
||||
} else {
|
||||
RCT2_CALLPROC_X(0x006CC3FB, 0, 0, 0, rideIndex, 0, 0, 0);
|
||||
sub_6CC3FB(rideIndex);
|
||||
w = window_find_by_class(WC_RIDE_CONSTRUCTION);
|
||||
window_event_helper(w, 29, WE_MOUSE_UP);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user