/** * * rct2: 0x006CFB39 */ static void window_track_list_scrollmousedown(rct_window *w, sint32 scrollIndex, sint32 x, sint32 y) { if (!(w->track_list.var_484 & 1)) { sint32 i = window_track_list_get_list_item_index_from_position(x, y); if (i != -1) { window_track_list_select(w, i); } } }
/** * * rct2: 0x006CFB39 */ static void window_track_list_scrollmousedown(rct_window *w, int scrollIndex, int x, int y) { int i; if (w->track_list.var_484 & 1) return; i = window_track_list_get_list_item_index_from_position(x, y); if (i != -1) window_track_list_select(w, i); }
/** * * rct2: 0x006CFB39 */ static void window_track_list_scrollmousedown() { rct_window *w; short i, x, y, scrollIndex; window_scrollmouse_get_registers(w, scrollIndex, x, y); if (w->track_list.var_484 & 1) return; // Made it impossible to click a design in pause mode. Since the UI now stays responsive in pause mode, always allow clicking a design. /*if (RCT2_GLOBAL(RCT2_ADDRESS_GAME_PAUSED, uint8) != 0) return;*/ i = window_track_list_get_list_item_index_from_position(x, y); if (i != -1) window_track_list_select(w, i); }