diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-12-27 19:36:04 -0600 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-01-03 16:56:49 -0600 |
| commit | 9ad2718cf2a4c3a29c0df36125af6e6fb2b7cd6a (patch) | |
| tree | 28abedd33e219410539ec84b71cbcb0441af2cf0 /src/engine/fox_display.c | |
| parent | 702352bf1847464e419d7de4763a4a818dca818c (diff) | |
Removed unnecesary struct since event cant be cancelled
Diffstat (limited to 'src/engine/fox_display.c')
| -rw-r--r-- | src/engine/fox_display.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/engine/fox_display.c b/src/engine/fox_display.c index f5bbc57d..6dda3d6e 100644 --- a/src/engine/fox_display.c +++ b/src/engine/fox_display.c @@ -1782,9 +1782,8 @@ void Display_Update(void) { } #endif - // @port: @event: Start DISPLAY_UPDATE_EVENT_PRE - IEvent* event = malloc(sizeof(IEvent)); - EventSystem_CallEvent(DISPLAY_UPDATE_EVENT_PRE, event); + // @port: @event: Call DISPLAY_UPDATE_EVENT_PRE + EventSystem_CallEvent(DISPLAY_UPDATE_EVENT_PRE, NULL); Matrix_Push(&gGfxMatrix); if ((gCurrentLevel == LEVEL_AQUAS) && (gPlayer[0].state == PLAYERSTATE_ACTIVE)) { @@ -2017,13 +2016,6 @@ void Display_Update(void) { sPlayersVisible[gPlayerNum] = false; Matrix_Pop(&gGfxMatrix); - // @port: @event: End DISPLAY_UPDATE_EVENT_PRE - free(event); - - // @port: @event: Start DISPLAY_UPDATE_EVENT_POST - event = malloc(sizeof(IEvent)); - EventSystem_CallEvent(DISPLAY_UPDATE_EVENT_POST, event); - - // @port: @event: End DISPLAY_UPDATE_EVENT_PRE - free(event); + // @port: @event: Call DISPLAY_UPDATE_EVENT_POST + EventSystem_CallEvent(DISPLAY_UPDATE_EVENT_POST, NULL); } |
