mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 13:35:11 +03:00
Removed unnecesary struct since event cant be cancelled
This commit is contained in:
parent
702352bf18
commit
9ad2718cf2
@ -1782,9 +1782,8 @@ void Display_Update(void) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// @port: @event: Start DISPLAY_UPDATE_EVENT_PRE
|
// @port: @event: Call DISPLAY_UPDATE_EVENT_PRE
|
||||||
IEvent* event = malloc(sizeof(IEvent));
|
EventSystem_CallEvent(DISPLAY_UPDATE_EVENT_PRE, NULL);
|
||||||
EventSystem_CallEvent(DISPLAY_UPDATE_EVENT_PRE, event);
|
|
||||||
|
|
||||||
Matrix_Push(&gGfxMatrix);
|
Matrix_Push(&gGfxMatrix);
|
||||||
if ((gCurrentLevel == LEVEL_AQUAS) && (gPlayer[0].state == PLAYERSTATE_ACTIVE)) {
|
if ((gCurrentLevel == LEVEL_AQUAS) && (gPlayer[0].state == PLAYERSTATE_ACTIVE)) {
|
||||||
@ -2017,13 +2016,6 @@ void Display_Update(void) {
|
|||||||
sPlayersVisible[gPlayerNum] = false;
|
sPlayersVisible[gPlayerNum] = false;
|
||||||
Matrix_Pop(&gGfxMatrix);
|
Matrix_Pop(&gGfxMatrix);
|
||||||
|
|
||||||
// @port: @event: End DISPLAY_UPDATE_EVENT_PRE
|
// @port: @event: Call DISPLAY_UPDATE_EVENT_POST
|
||||||
free(event);
|
EventSystem_CallEvent(DISPLAY_UPDATE_EVENT_POST, NULL);
|
||||||
|
|
||||||
// @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);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user