From 78845ca16553b6bbe28450a314a326fafa7728e1 Mon Sep 17 00:00:00 2001 From: Duncan Date: Mon, 23 Jun 2014 12:37:12 +0100 Subject: [PATCH] is_peep_in_filter updated to use decompiled func Has not been tested. Considering redoing all of these functions removing hard to understand variables. --- src/window_guest_list.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/window_guest_list.c b/src/window_guest_list.c index 8142acd81e..08638a1c77 100644 --- a/src/window_guest_list.c +++ b/src/window_guest_list.c @@ -802,15 +802,13 @@ static void window_guest_list_scrollpaint() */ static int window_guest_list_is_peep_in_filter(rct_peep* peep) { - int eax, ebx, ecx, edx, esi, edi, ebp; + int eax, ebx; char temp; temp = _window_guest_list_selected_view; _window_guest_list_selected_view = _window_guest_list_selected_filter; - esi = (int)peep; - RCT2_CALLFUNC_X(0x0069B7EA, &eax, &ebx, &ecx, &edx, &esi, &edi, &ebp); - ebx &= 0xFFFF; + ebx = sub_69B7EA(peep, &eax); _window_guest_list_selected_view = temp; eax = (RCT2_GLOBAL(0x013CE952, uint16) << 16) | ebx;