1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

implement sub_6CC3FB

This commit is contained in:
IntelOrca
2014-11-04 21:39:03 +00:00
parent 39ad49bac9
commit 508ed131f7
9 changed files with 111 additions and 3 deletions

View File

@@ -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);

View 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;
}

View File

@@ -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);
}