forked from metin2/server
Rewrote network stack, started working on porting to 64-bit
This commit is contained in:
@@ -19,7 +19,7 @@ static ObjectPool<EVENT> event_pool;
|
||||
static CEventQueue cxx_q;
|
||||
|
||||
/* <20>̺<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD> */
|
||||
LPEVENT event_create_ex(TEVENTFUNC func, event_info_data* info, long when)
|
||||
LPEVENT event_create_ex(TEVENTFUNC func, event_info_data* info, int when)
|
||||
{
|
||||
LPEVENT new_event = NULL;
|
||||
|
||||
@@ -87,7 +87,7 @@ void event_cancel(LPEVENT * ppevent)
|
||||
*ppevent = NULL;
|
||||
}
|
||||
|
||||
void event_reset_time(LPEVENT event, long when)
|
||||
void event_reset_time(LPEVENT event, int when)
|
||||
{
|
||||
if (!event->is_processing)
|
||||
{
|
||||
@@ -101,7 +101,7 @@ void event_reset_time(LPEVENT event, long when)
|
||||
/* <20>̺<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̺<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD> */
|
||||
int event_process(int pulse)
|
||||
{
|
||||
long new_time;
|
||||
int new_time;
|
||||
int num_events = 0;
|
||||
|
||||
// event_q <20><> <20>̺<EFBFBD>Ʈ ť<><C5A5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> pulse <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
@@ -119,7 +119,7 @@ int event_process(int pulse)
|
||||
new_time = pElem->iKey;
|
||||
|
||||
LPEVENT the_event = pElem->pvData;
|
||||
long processing_time = event_processing_time(the_event);
|
||||
int processing_time = event_processing_time(the_event);
|
||||
cxx_q.Delete(pElem);
|
||||
|
||||
/*
|
||||
@@ -157,9 +157,9 @@ int event_process(int pulse)
|
||||
}
|
||||
|
||||
/* <20>̺<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> pulse <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD> */
|
||||
long event_processing_time(LPEVENT event)
|
||||
int event_processing_time(LPEVENT event)
|
||||
{
|
||||
long start_time;
|
||||
int start_time;
|
||||
|
||||
if (!event->q_el)
|
||||
return 0;
|
||||
@@ -169,9 +169,9 @@ long event_processing_time(LPEVENT event)
|
||||
}
|
||||
|
||||
/* <20>̺<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> pulse <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD> */
|
||||
long event_time(LPEVENT event)
|
||||
int event_time(LPEVENT event)
|
||||
{
|
||||
long when;
|
||||
int when;
|
||||
|
||||
if (!event->q_el)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user