Lot of changes

This commit is contained in:
Ley0k 2016-08-13 18:32:13 +02:00
parent db1cfb675c
commit 3436b47544
43 changed files with 1249 additions and 123 deletions

View file

@ -471,6 +471,13 @@ void L_ShutdownEvents( void )
L_ClearEventList();
eventInfo_t *evi, *prev;
for( evi = lastEvent; evi != NULL; evi = prev )
{
prev = evi->prev;
free( evi );
}
Event::commandList.clear();
Event::eventDefList.clear();
@ -3240,6 +3247,9 @@ qboolean Listener::ProcessPendingEvents( void )
// ProcessEvent will dispose of this event when it is done
obj->ProcessEvent( event->event );
// free up the node
delete event;
// start over, since can't guarantee that we didn't process any previous or following events
event = Event::EventQueue.next;