… | |
… | |
1434 | void |
1434 | void |
1435 | server_tick () |
1435 | server_tick () |
1436 | { |
1436 | { |
1437 | nroferrors = 0; |
1437 | nroferrors = 0; |
1438 | |
1438 | |
|
|
1439 | // first do the user visible stuff |
1439 | doeric_server (); |
1440 | doeric_server (); |
1440 | INVOKE_GLOBAL (CLOCK); |
1441 | INVOKE_GLOBAL (CLOCK); |
1441 | process_events (NULL); /* "do" something with objects with speed */ |
1442 | process_events (NULL); /* "do" something with objects with speed */ |
1442 | flush_sockets (); |
1443 | flush_sockets (); |
|
|
1444 | |
|
|
1445 | // then do some bookkeeping, should not really be here |
1443 | check_active_maps (); /* Removes unused maps after a certain timeout */ |
1446 | check_active_maps (); /* Removes unused maps after a certain timeout */ |
1444 | do_specials (); /* Routines called from time to time. */ |
1447 | do_specials (); /* Routines called from time to time. */ |
1445 | object::free_mortals (); |
1448 | object::free_mortals (); |
1446 | |
1449 | |
1447 | ++pticks; |
1450 | ++pticks; |