1 | /* |
1 | /* |
2 | * static char *rcsid_main_c = |
2 | * static char *rcsid_main_c = |
3 | * "$Id: main.c,v 1.7 2006/05/12 23:15:36 root Exp $"; |
3 | * "$Id: main.c,v 1.8 2006/05/21 23:46:39 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
1336 | doeric_server(); |
1336 | doeric_server(); |
1337 | process_events(NULL); /* "do" something with objects with speed */ |
1337 | process_events(NULL); /* "do" something with objects with speed */ |
1338 | cftimer_process_timers();/* Process the crossfire Timers */ |
1338 | cftimer_process_timers();/* Process the crossfire Timers */ |
1339 | /* Lauwenmark : Here we handle the CLOCK global event */ |
1339 | /* Lauwenmark : Here we handle the CLOCK global event */ |
1340 | execute_global_event(EVENT_CLOCK); |
1340 | execute_global_event(EVENT_CLOCK); |
|
|
1341 | flush_sockets(); |
1341 | check_active_maps(); /* Removes unused maps after a certain timeout */ |
1342 | check_active_maps(); /* Removes unused maps after a certain timeout */ |
1342 | do_specials(); /* Routines called from time to time. */ |
1343 | do_specials(); /* Routines called from time to time. */ |
1343 | |
1344 | |
1344 | sleep_delta(); /* Slepp proper amount of time before next tick */ |
1345 | sleep_delta(); /* Slepp proper amount of time before next tick */ |
1345 | } |
1346 | } |