1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Use new ride window when clicking on ride

This commit is contained in:
Duncan Frost
2014-09-22 17:46:14 +01:00
parent b1886a53e4
commit e0a7d4533d
2 changed files with 2 additions and 2 deletions

View File

@@ -933,7 +933,7 @@ static void game_handle_input_mouse(int x, int y, int state)
eax = RCT2_ADDRESS(0x0099BA64, uint8)[16 * map_element->properties.track.type];
if (!(eax & 0x10)){//If not station track
//Open ride window in overview mode.
RCT2_CALLPROC_X(0x6ACC28, map_element->properties.track.ride_index, ebx, ecx, (int)map_element, esi, edi, ebp);
window_ride_main_open(map_element->properties.track.ride_index);
break;
}
}

View File

@@ -291,7 +291,7 @@ void news_item_open_subject(int type, int subject) {
switch (type) {
case NEWS_ITEM_RIDE:
RCT2_CALLPROC_X(0x006ACC28, subject, 0, 0, 0, 0, 0, 0);
window_ride_main_open(subject);
break;
case NEWS_ITEM_PEEP_ON_RIDE:
case NEWS_ITEM_PEEP: