1 | /* |
1 | /* |
2 | * static char *rcsid_main_c = |
2 | * static char *rcsid_main_c = |
3 | * "$Id: main.C,v 1.11 2006/08/28 08:38:19 root Exp $"; |
3 | * "$Id: main.C,v 1.12 2006/08/29 05:03:55 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 | |
… | |
… | |
1312 | void server_tick () |
1312 | void server_tick () |
1313 | { |
1313 | { |
1314 | nroferrors = 0; |
1314 | nroferrors = 0; |
1315 | |
1315 | |
1316 | doeric_server(); |
1316 | doeric_server(); |
|
|
1317 | INVOKE_GLOBAL (CLOCK); |
1317 | process_events(NULL); /* "do" something with objects with speed */ |
1318 | process_events(NULL); /* "do" something with objects with speed */ |
1318 | cftimer_process_timers();/* Process the crossfire Timers */ |
|
|
1319 | INVOKE_GLOBAL (CLOCK); |
|
|
1320 | flush_sockets(); |
1319 | flush_sockets(); |
1321 | check_active_maps(); /* Removes unused maps after a certain timeout */ |
1320 | check_active_maps(); /* Removes unused maps after a certain timeout */ |
1322 | do_specials(); /* Routines called from time to time. */ |
1321 | do_specials(); /* Routines called from time to time. */ |
1323 | |
1322 | |
1324 | ++pticks; |
1323 | ++pticks; |