From c6e7fb0ebe86814dad7c15bf6b66097505ed3af1 Mon Sep 17 00:00:00 2001 From: Duncan Date: Fri, 27 Jun 2014 12:50:25 +0100 Subject: [PATCH] Added more to window_peep Has not been tested. This will likely fail as the function calls are not in. --- src/window_peep.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/window_peep.c b/src/window_peep.c index 66d35759b9..e6aa0c720c 100644 --- a/src/window_peep.c +++ b/src/window_peep.c @@ -157,7 +157,23 @@ void window_peep_open(rct_peep* peep){ window->colours[0] = 1; window->colours[1] = 15; window->colours[2] = 15; + window->var_482 = -1; } + + window->var_48A = 0; + //call 6EB13A + + window->widgets = RCT2_GLOBAL(0x981D0C, uint32); + window->enabled_widgets = RCT2_GLOBAL(0x981D3C,uint32); + window->var_20 = RCT2_GLOBAL(0x981D54,uint32); + window->event_handlers = RCT2_GLOBAL(0x981D24,uint32); + window->pressed_widgets = 0; + + //call 6987A6 + //call 6eaeb8 + //call 69883c + + //RCT2_CALLPROC_X(0x006989E9, 0, 0, 0, (int)peep, 0, 0, 0); }