From 9947aa8df1013cb790d1b9d36d33217aedaa3ed7 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Sat, 4 Jan 2025 01:23:07 -0300 Subject: [PATCH] fix OnDisplayUpdate event call --- src/port/mods/PortEnhancements.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/port/mods/PortEnhancements.c b/src/port/mods/PortEnhancements.c index db9383dc..8babf01b 100644 --- a/src/port/mods/PortEnhancements.c +++ b/src/port/mods/PortEnhancements.c @@ -6,7 +6,7 @@ #define INIT_EVENT_IDS #include "port/hooks/Events.h" -void OnDisplayUpdatePre(IEvent* event) { +void OnDisplayUpdatePost(IEvent* event) { #if DEBUG_BOSS_KILLER == 1 KillBoss(); #endif @@ -192,7 +192,7 @@ void PortEnhancements_Init() { PortEnhancements_Register(); // Register event listeners - REGISTER_LISTENER(DisplayPreUpdateEvent, OnDisplayUpdatePre, EVENT_PRIORITY_NORMAL); + REGISTER_LISTENER(DisplayPostUpdateEvent, OnDisplayUpdatePost, EVENT_PRIORITY_NORMAL); REGISTER_LISTENER(GamePostUpdateEvent, OnGameUpdatePost, EVENT_PRIORITY_NORMAL); REGISTER_LISTENER(PlayerPostUpdateEvent, OnPlayerUpdatePost, EVENT_PRIORITY_NORMAL);