mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Lot of changes
This commit is contained in:
parent
db1cfb675c
commit
3436b47544
43 changed files with 1249 additions and 123 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue