1 #include "defs.h" 2 3 #include "list.h" 4 #include "server.h" 5 #include "world.h" 6 7 int main(int argc, char *argv[]) { 8 run_server(); 9 10 init_world(); 11 12 printf("Server started.\n"); 13 14 while (1) { 15 init_messages(); 16 poll_network(); 17 check_worldgen(); 18 send_messages(); 19 } 20 21 stop_server(); 22 23 exit(0); 24 }