1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Added construct dropdown function fixes #638.

This commit is contained in:
Duncan Frost
2014-12-19 18:44:42 +00:00
parent 58411f4b86
commit 583cb5118c

View File

@@ -78,7 +78,7 @@ static void* window_construction_events[] = {
(void*)0x6C6E14,
(void*)0x6C7934,
(void*)0x6C6E6A,
window_construction_emptysub,
(void*)0x6C78CD,
window_construction_emptysub,
(void*)0x6C8374,
window_construction_emptysub,
@@ -110,8 +110,10 @@ static void* window_construction_events[] = {
*/
rct_window *window_construction_open()
{
int eax, ebx, ecx, edx, esi, edi, ebp;
//int eax, ebx, ecx, edx, esi, edi, ebp;
//RCT2_CALLFUNC_X(0x006CB481, &eax, &ebx, &ecx, &edx, &esi, &edi, &ebp);
//return (rct_window*)esi;
int ride_id = RCT2_GLOBAL(0xF440A7, uint8);
sub_6b2fa9(ride_id);
@@ -184,9 +186,6 @@ rct_window *window_construction_open()
RCT2_GLOBAL(0x00F44159, uint8) = 0;
RCT2_GLOBAL(0x00F4415C, uint8) = 0;
return w;
RCT2_CALLFUNC_X(0x006CB481, &eax, &ebx, &ecx, &edx, &esi, &edi, &ebp);
return (rct_window*)esi;
}
void window_construction_close(){