From 72d16dd4d03cc0a1d797598b3efabaadeba15fe0 Mon Sep 17 00:00:00 2001 From: zsilencer Date: Tue, 14 Jul 2015 16:44:35 -0600 Subject: [PATCH] make all sounds play correctly through hook --- src/openrct2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2.c b/src/openrct2.c index a7611086b7..d912c9921f 100644 --- a/src/openrct2.c +++ b/src/openrct2.c @@ -191,6 +191,7 @@ bool openrct2_initialise() addhook(0x006E7499, (int)gfx_redraw_screen_rect, 0, (int[]){ EAX, EBX, EDX, EBP, END }, 0); // remove when 0x6E7FF3 is decompiled addhook(0x006B752C, (int)ride_crash, 0, (int[]){ EDX, EBX, END }, 0); // remove when all callers are decompiled addhook(0x0069A42F, (int)peep_window_state_update, 0, (int[]){ ESI, END }, 0); // remove when all callers are decompiled + addhook(0x006BB76E, (int)sound_play_panned, 0, (int[]){EAX, EBX, ECX, EDX, EBP, END}, EAX); // remove when all callers are decompiled if (!rct2_init()) return false;