mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 21:45:00 +03:00
fix OnDisplayUpdate event call
This commit is contained in:
parent
97e63d6b06
commit
9947aa8df1
@ -6,7 +6,7 @@
|
|||||||
#define INIT_EVENT_IDS
|
#define INIT_EVENT_IDS
|
||||||
#include "port/hooks/Events.h"
|
#include "port/hooks/Events.h"
|
||||||
|
|
||||||
void OnDisplayUpdatePre(IEvent* event) {
|
void OnDisplayUpdatePost(IEvent* event) {
|
||||||
#if DEBUG_BOSS_KILLER == 1
|
#if DEBUG_BOSS_KILLER == 1
|
||||||
KillBoss();
|
KillBoss();
|
||||||
#endif
|
#endif
|
||||||
@ -192,7 +192,7 @@ void PortEnhancements_Init() {
|
|||||||
PortEnhancements_Register();
|
PortEnhancements_Register();
|
||||||
|
|
||||||
// Register event listeners
|
// 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(GamePostUpdateEvent, OnGameUpdatePost, EVENT_PRIORITY_NORMAL);
|
||||||
REGISTER_LISTENER(PlayerPostUpdateEvent, OnPlayerUpdatePost, EVENT_PRIORITY_NORMAL);
|
REGISTER_LISTENER(PlayerPostUpdateEvent, OnPlayerUpdatePost, EVENT_PRIORITY_NORMAL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user